OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-display.js"></script> |
| 3 <script> |
| 4 if (window.testRunner) |
| 5 testRunner.waitUntilDone(); |
| 6 |
| 7 function test(start, end) { |
| 8 var text = document.getElementsByTagName('div')[0].firstChild; |
| 9 window.getSelection().setBaseAndExtent(text, start, text, end); |
| 10 if (start == end) { |
| 11 if (window.testRunner) |
| 12 testRunner.notifyDone(); |
| 13 return; |
| 14 } |
| 15 runAfterDisplay(function() { |
| 16 test(start + 1, end - 1); |
| 17 }); |
| 18 } |
| 19 |
| 20 onload = function() { |
| 21 test(1, 25); |
| 22 }; |
| 23 </script> |
| 24 There should be no residue when shrinking a selection under a sub-pixel-position
ed element. |
| 25 <div style="position: absolute; left: 0.3px"> |
| 26 ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| 27 </div> |
OLD | NEW |