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

Unified Diff: LayoutTests/fast/regions/selection-direction.html

Issue 25220002: [CSS Regions] Layout Test for selection direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/regions/selection-direction-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/regions/selection-direction.html
diff --git a/LayoutTests/fast/regions/selection-direction.html b/LayoutTests/fast/regions/selection-direction.html
new file mode 100644
index 0000000000000000000000000000000000000000..e85b8fee24fb48a49346df4504f35a1bcc091afe
--- /dev/null
+++ b/LayoutTests/fast/regions/selection-direction.html
@@ -0,0 +1,48 @@
+<html>
+<head>
+ <style>
+ #source {
+ -webkit-flow-into: content;
+ }
+
+ #region {
+ -webkit-flow-from: content;
+ height: 100px;
+ width: 200px;
+ }
+
+ #outside {
+ height: 100px;
+ width: 200px;
+ }
+
+ body {
+ margin-top: 0;
+ }
+
+ #description {
+ width: 600px;
+ }
+ </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="source">inside region inside region inside region inside region</div>
+ <div id="outside">outside region outside region outside region outside region</div>
+ <div id="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>
« no previous file with comments | « no previous file | LayoutTests/fast/regions/selection-direction-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698