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

Unified Diff: LayoutTests/fast/text/international/mixed-directionality-selection.html

Issue 104813005: Explicitly set text direction for TextRuns (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 11 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 | « LayoutTests/TestExpectations ('k') | Source/core/rendering/InlineTextBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/international/mixed-directionality-selection.html
diff --git a/LayoutTests/fast/text/international/mixed-directionality-selection.html b/LayoutTests/fast/text/international/mixed-directionality-selection.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9f81c7de080d2f1fdcdc0c1798ea8c2a149aa47
--- /dev/null
+++ b/LayoutTests/fast/text/international/mixed-directionality-selection.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <style>
+ input {
+ width: 200px;
+ font-size: 64px;
+ }
+ </style>
+ </head>
+ <body>
+ <input dir="rtl" value="[[مقاله]]">
+ <p>
+ The last character (and only the last character) should be
+ selected in the text box above.
+ </p>
+ <script>
+ var el = document.getElementsByTagName('input')[0];
+ el.setSelectionRange(0, 1);
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/InlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698