Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / replaced / selection-rect-in-table-cell.html
1 <html>
2 <head>
3     <title></title>
4     <style>
5         ::selection { background: green; }
6     </style>
7 </head>
8 <body>
9     <p>
10         Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=13194">http://bugs.webkit.org/show_bug.cgi?id=13194</a>
11         REGRESSION: Selection rects are wrong for images in search results from images.google.com</i>.
12     </p>
13     <p>
14         Tests highlighting of replaced objects in table cells with extra height. You should see a dark green box and no red.
15     </p>
16     <table>
17         <tr>
18             <td id="target" style="height: 100px;"><img width="50" height="50" style="background: red;"></td>
19         </tr>
20     </table>
21     <script>
22         var target = document.getElementById("target");
23         getSelection().setBaseAndExtent(target, 0, target, 1);
24     </script>
25 </body>
26 </html>