| <html> |
| <head> |
| <title></title> |
| <style> |
| ::selection { background: green; } |
| </style> |
| </head> |
| <body> |
| <p> |
| Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13194">http://bugs.webkit.org/show_bug.cgi?id=13194</a> |
| REGRESSION: Selection rects are wrong for images in search results from images.google.com</i>. |
| </p> |
| <p> |
| Tests highlighting of replaced objects in table cells with extra height. You should see a dark green box and no red. |
| </p> |
| <table> |
| <tr> |
| <td id="target" style="height: 100px;"><img width="50" height="50" style="background: red;"></td> |
| </tr> |
| </table> |
| <script> |
| var target = document.getElementById("target"); |
| getSelection().setBaseAndExtent(target, 0, target, 1); |
| </script> |
| </body> |
| </html> |