Index: LayoutTests/fast/regions/selection-direction-expected.html |
diff --git a/LayoutTests/fast/regions/selection-direction-expected.html b/LayoutTests/fast/regions/selection-direction-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63750894e4eb24fad030b45b4d0e6052b7b69cf9 |
--- /dev/null |
+++ b/LayoutTests/fast/regions/selection-direction-expected.html |
@@ -0,0 +1,48 @@ |
+<html> |
+<head> |
+ <style> |
+ #region { |
+ height: 100px; |
+ width: 200px; |
+ position: absolute; |
+ top: 100px; |
+ } |
+ |
+ #outside { |
+ height: 100px; |
+ width: 200px; |
+ position: absolute; |
+ top: 0px; |
+ } |
+ |
+ body { |
+ margin-top: 0; |
+ } |
+ |
+ #description { |
+ width: 600px; |
+ position: absolute; |
+ top: 200px; |
+ } |
+ </style> |
+ <script> |
+ function selectText() { |
+ if (window.testRunner) { |
+ eventSender.mouseMoveTo(100, 10); |
+ eventSender.mouseDown(); |
+ |
+ eventSender.mouseMoveTo(100, 110); |
+ eventSender.mouseUp(); |
+ } |
+ } |
+ </script> |
+</head> |
+<body onload="selectText();"> |
+ <div id="region">inside region inside region inside region inside region</div> |
+ <div id="outside">outside region outside region outside region outside region</div> |
+ <div id="description"> |
+ <h1><a href="https://bugs.webkit.org/show_bug.cgi?id=121501">Bug #121501 - [CSS Regions] Layout Test for selection direction</a></h1> |
+ <p>Selection is based in DOM tree, so if you select text from "outside region" to "inside region" the highlighted area is exactly the opposite to what the user is actually selecting.</p> |
+ </div> |
+</body> |
+</html> |