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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/ellipsis-rtl-text-in-rtl-flow-underline-composition.html

Issue 2237043003: Paint underline correctly in mixed flow text contexts with truncation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@634445-2
Patch Set: 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/fast/text/ellipsis-rtl-text-in-rtl-flow-underline-composition.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/ellipsis-rtl-text-in-rtl-flow-underline-composition.html b/third_party/WebKit/LayoutTests/fast/text/ellipsis-rtl-text-in-rtl-flow-underline-composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..c550d52c095a67f0608360e72f442c65ab105874
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/ellipsis-rtl-text-in-rtl-flow-underline-composition.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<meta charset='utf-8'>
+<style>
+div {
+ width: 125px;
+ height: 20px;
+ font: 12px;
+ overflow: hidden;
+ white-space: pre;
+ text-overflow: ellipsis;
+ direction: rtl;
+}
+</style>
+<p>crbug.com/636060: rtl text in a rtl flow should truncate the text left-to-right and underline correctly in composition mode.</p>
+<p>You should see an underline beneath the text.</p>
+<div id="textarea" contenteditable="true"></div>
+<script>
+if (window.testRunner) {
+ var textarea = document.getElementById("textarea");
+ textarea.focus();
+ textInputController.setComposition("אבגדהוזחטיכךלמםסעפףצץקרשת<");
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698