Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 4402375.html
blob7ba31914ec6e1038aed1b6f42fc44b2068d80630
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This is a testcase for <a href="rdar://problem/4402375">rdar://problem/4402375</a> "REGRESSION (417.8-TOT): finding text sometimes also selects previous image (5127) (6451)"</p>
6 <hr>
7 <p>This test uses a right aligned image next to some left aligned text. The image should not be selected, and should not be included in the selection rect (you won't see the selection rect when you run this test manually).</p>
8 <div id="test" align="left"><img src="../resources/abe.png" align="right">This text should be selected.</div>
9 <script>
10 if (window.testRunner)
11 window.testRunner.dumpSelectionRect();
12 var e = document.getElementById("test");
13 var s = window.getSelection();
14 // Select the text node.
15 s.setBaseAndExtent(e, 1, e, 2);
16 </script>