5 ::selection { background-color: red; }
10 font:
82% arial,sans-serif;
13 <script src=
"../../../resources/run-after-layout-and-paint.js" type=
"text/javascript"></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();
26 <body onload=
"runAfterLayoutAndPaint(repaintTest)">
27 <table style=
"position: absolute; top: 1.5px;">
30 <pre id=
"pre">There should be no selection artifacts below.
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
;