| testRunner.dumpAsText(false); |
| testRunner.waitUntilDone(); |
| function runRepaintTest() |
| internals.startTrackingRepaints(); |
| var target = document.getElementById("target"); |
| getSelection().setBaseAndExtent(target, 0, target.nextSibling, 0); |
| document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText(); |
| internals.stopTrackingRepaints(); |
| #target::selection { background-color: green; } |
| <body onload="runRepaintTest()"> |
| <div style="position: absolute; margin-left: 200px;"> |
| <div>Bug <a href="http://webkit.org/b/111000">111000</a>: Selection gaps don't repaint correctly with transforms</div> |
| <div>This tests that absolute elements are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.</div> |
| <div id="target" style="background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/> |
| <div id="repaints"></div> |