2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
5 testRunner
.waitUntilDone();
7 function test(start
, end
) {
8 var text
= document
.getElementsByTagName('div')[0].firstChild
;
9 window
.getSelection().setBaseAndExtent(text
, start
, text
, end
);
11 if (window
.testRunner
)
12 testRunner
.notifyDone();
15 runAfterLayoutAndPaint(function() {
16 test(start
+ 1, end
- 1);
24 There should be no residue when shrinking a selection under a sub-pixel-positioned element.
25 <div style=
"position: absolute; left: 0.3px">
26 ABCDEFGHIJKLMNOPQRSTUVWXYZ