Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / subpixel-positioned-selection.html
blobb9650d25258314b196bead29efbb3e44c33280bb
1 <!DOCTYPE html>
2 <script src="../../resources/run-after-layout-and-paint.js"></script>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
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;
15 runAfterLayoutAndPaint(function() {
16 test(start + 1, end - 1);
17 });
20 onload = function() {
21 test(1, 25);
23 </script>
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
27 </div>