Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / replaced / selection-rect-in-table-cell.html
blob2b476ada60d211868d8a91474b5fd056a4ab40be
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>