Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: LayoutTests/fast/multicol/caret-range-anonymous-block-rtl.html

Issue 1003303005: [New Multicolumn] Correct localPoint when hitting an anonymous child block. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase master Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 body {
4 margin:0;
5 }
6
7 #mc {
8 -webkit-columns: 3;
9 -webkit-column-gap: 20px;
10 direction: rtl;
11 unicode-bidi: bidi-override;
12 width: 280px;
13 margin:20px 100px;
14 font: 20px/1 Ahem;
15 background:lime;
16 }
17
18 #log {
19 position: absolute;
20 top: 101px;
21 }
22 </style>
23 <div id="log">
24 <p id="description"></p>
25 <div id="console"></div>
26 </div>
27 <div id="mc">
28 <div>
29 <!-- Here's an empty block to trigger wrapping of the sibling text insid e an anonymous block. -->
30 </div>xxx xxx xxx xxx xxx xxx xxx xxx xxx</div>
31 <script src="../../resources/js-test.js"></script>
32 <script>
33 description("Test that hitting an anonymous block child of a multicol contai ner takes us to the right text content.");
34
35 debug("First column:");
36 shouldBe("document.caretRangeFromPoint(310,39).startOffset", "3");
37 shouldBe("document.caretRangeFromPoint(310,40).startOffset", "7");
38 shouldBe("document.caretRangeFromPoint(310,79).startOffset", "11");
39
40 debug("Second column:");
41 shouldBe("document.caretRangeFromPoint(210,39).startOffset", "15");
42 shouldBe("document.caretRangeFromPoint(210,40).startOffset", "19");
43 shouldBe("document.caretRangeFromPoint(210,79).startOffset", "23");
44
45 debug("Third column:");
46 shouldBe("document.caretRangeFromPoint(110,39).startOffset", "27");
47 shouldBe("document.caretRangeFromPoint(110,40).startOffset", "31");
48 shouldBe("document.caretRangeFromPoint(110,79).startOffset", "35");
49 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698