Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / sub-pixel / selection / selection-rect-in-sub-pixel-table.html
blob2285fbc81aed9bc02fcbd1fc5f6383dde7cfef14
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 ::selection { background-color: red; }
6 pre {
7 font-size: 110%;
9 body {
10 font: 82% arial,sans-serif;
12 </style>
13 <script src="../../../resources/run-after-layout-and-paint.js" type="text/javascript"></script>
14 <script>
15 if (window.testRunner) {
16 testRunner.waitUntilDone();
17 testRunner.dumpAsTextWithPixelResults();
19 function repaintTest() {
20 window.getSelection().removeAllRanges();
21 if (window.testRunner)
22 testRunner.notifyDone();
24 </script>
25 </head>
26 <body onload="runAfterLayoutAndPaint(repaintTest)">
27 <table style="position: absolute; top: 1.5px;">
28 <tr>
29 <td>
30 <pre id="pre">There should be no selection artifacts below.
31 </pre>
32 </td>
33 </tr>
34 </table>
35 <script type="text/javascript">
36 var text = document.getElementById("pre").firstChild;
37 window.getSelection().setBaseAndExtent(text, 0, text, text.length);
38 document.body.offsetTop;
39 </script>
40 </body>