1 <!-- Based on fast/repaint/selection-gap-absolute-child.html -->
4 <script src=
"resources/paint-invalidation-test.js"></script>
7 testRunner
.dumpAsTextWithPixelResults();
8 window
.expectedPaintInvalidationObjects
= [
9 "LayoutBlockFlow HTML",
10 "LayoutBlockFlow BODY",
11 "LayoutBlockFlow DIV",
14 "LayoutBlockFlow (positioned) DIV id='target'",
18 function paintInvalidationTest()
20 var target
= document
.getElementById("target");
21 getSelection().setBaseAndExtent(target
, 0, target
.nextSibling
, 1);
26 #target::selection { background-color: green; }
29 <body onload=
"runPaintInvalidationTest()">
30 <div style=
"position: absolute; margin-left: 200px;">
31 <div>Bug
<a href=
"http://webkit.org/b/111000">111000</a>: Selection gaps don't repaint correctly with transforms
</div>
32 <div>This tests that absolute elements are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.
</div>
35 <div id=
"target" style=
"background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/>