OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
| 3 <script src="../resources/helper.js"></script> |
3 <style> | 4 <style> |
4 #region { | 5 #region { |
5 height: 100px; | 6 height: 100px; |
6 width: 200px; | 7 width: 200px; |
7 position: absolute; | 8 position: absolute; |
8 top: 100px; | 9 top: 100px; |
9 } | 10 } |
10 | 11 |
11 #outside { | 12 #outside { |
12 height: 100px; | 13 height: 100px; |
13 width: 200px; | 14 width: 200px; |
14 position: absolute; | 15 position: absolute; |
15 top: 0px; | 16 top: 0px; |
16 } | 17 } |
17 | 18 |
18 body { | 19 body { |
19 margin-top: 0; | 20 margin-top: 0; |
20 } | 21 } |
21 | 22 |
22 #description { | 23 #description { |
23 width: 600px; | 24 width: 600px; |
24 position: absolute; | 25 position: absolute; |
25 top: 200px; | 26 top: 200px; |
26 } | 27 } |
27 </style> | 28 </style> |
28 <script> | |
29 function selectText() { | |
30 if (window.testRunner) { | |
31 eventSender.mouseMoveTo(100, 10); | |
32 eventSender.mouseDown(); | |
33 | |
34 eventSender.mouseMoveTo(100, 110); | |
35 eventSender.mouseUp(); | |
36 } | |
37 } | |
38 </script> | |
39 </head> | 29 </head> |
40 <body onload="selectText();"> | 30 <body onload="selectContentByRange(100, 10, 100, 110);"> |
41 <div id="region">inside region inside region inside region inside region</di
v> | 31 <div id="region">inside region inside region inside region inside region</di
v> |
42 <div id="outside">outside region outside region outside region outside regio
n</div> | 32 <div id="outside">outside region outside region outside region outside regio
n</div> |
43 <div id="description"> | 33 <div id="description"> |
44 <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=121501">Bug #121501
- [CSS Regions] Layout Test for selection direction</a></h1> | 34 <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=121501">Bug #121501
- [CSS Regions] Layout Test for selection direction</a></h1> |
45 <p>Selection is based in DOM tree, so if you select text from "outside r
egion" to "inside region" the highlighted area is exactly the opposite to what t
he user is actually selecting.</p> | 35 <p>Selection is based in DOM tree, so if you select text from "outside r
egion" to "inside region" the highlighted area is exactly the opposite to what t
he user is actually selecting.</p> |
46 </div> | 36 </div> |
47 </body> | 37 </body> |
48 </html> | 38 </html> |
OLD | NEW |