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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html

Issue 2266733002: Select mixed rtl-ltr correctly when an ellipsis is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bug 634445-selection Created 4 years, 4 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
Index: third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html b/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html
new file mode 100644
index 0000000000000000000000000000000000000000..71836fc2e6faefe8b3e491ed74c32a2825571730
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<style>
+dl {
+ max-width: 20em;
+ margin: auto;
+ font-size: 120%;
+ white-space: nowrap;
+}
+dd {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ text-decoration: inherit;
+ direction: rtl;
+}
+</style>
+<p>crbug.com/634445: Select all text in mixed ltr-rtl in rtl flow.</p>
+<dl>
+ <dd id="selection_with_ellipsis">Lorem לורם איפסום הוא כינוי לטקסט חסר משמעות לחלוטין </dd>
+</dl>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ getSelection().setBaseAndExtent(selection_with_ellipsis.firstChild, 0, selection_with_ellipsis.firstChild, 155);
+ }, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698