3 <script src=
"resources/text-based-repaint.js"></script>
7 var target
= document
.getElementById("target");
8 getSelection().setBaseAndExtent(target
, 0, target
.nextSibling
, 1);
13 #target::selection { background-color: green; }
16 <body onload=
"runRepaintTest()">
17 <div style=
"position: absolute; margin-left: 200px;">
18 <div>Bug
<a href=
"http://webkit.org/b/111000">111000</a>: Selection gaps don't repaint correctly with transforms
</div>
19 <div>This tests that absolute elements that get transformed are invalidated correctly. The box will be completely green if the selected area was invalidated correctly.
</div>
21 <div style=
"transform: translate(50px, 50px);">
22 <div id=
"target" style=
"background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/>