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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align.html

Issue 2564263002: Merge 2924: Fix not to double count the widths of hyphens (Closed)
Patch Set: Created 4 years 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/hyphens/hyphens-align.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align.html
new file mode 100644
index 0000000000000000000000000000000000000000..cb38583886f621a239e14a75808b11e69667d27a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/hyphens-align.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script>
+if (window.internals)
+ internals.setMockHyphenation('en-us');
+</script>
+<style>
+div {
+ width: 15ch;
+ border: 2px solid blue;
+}
+.hyphen {
+ hyphens: auto;
+}
+</style>
+<div style="text-align: justify">
+ <div class="hyphen">This is hyphenation enabled paragraph.</div>
+ <div>This is hyphen&shy;ation enabled paragraph.</div>
+</div>
+<div style="text-align: right">
+ <div class="hyphen">This is hyphenation enabled paragraph.</div>
+ <div>This is hyphen&shy;ation enabled paragraph.</div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698