Index: third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.html |
diff --git a/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.html b/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7e0d15cbaa9ff9903cf2949944f0d2d97dcf3dab |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/editing/selection/select-text-overflow-ellipsis-mixed-in-rtl-2.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/642454: Select all text in mixed ltr-rtl in rtl flow. None of the dots in the ellipsis should be selected.</p> |
+<dl> |
+ <dd id="selection_with_ellipsis">Lorem ipsum ינטרנט וכו' במקום הטקסט האמיתי הסופיעד שיהיה טקסט אמית</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> |