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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority.html

Issue 2560453002: Prioritize hyphenations over break-word/break-all (Closed)
Patch Set: Rebase with a static helper function 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/midword-break-priority.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority.html b/third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority.html
new file mode 100644
index 0000000000000000000000000000000000000000..dbcc969c14fa75619d0b6a29fc40bab0bc8822d5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<script>
+if (window.internals)
+ internals.setMockHyphenation('en-us');
+</script>
+<style>
+dt {
+ float: left;
+ width: 19ch;
+}
+dd {
+ margin-left: 20ch;
+}
+div {
+ border: thick solid blue;
+ width: 8ch;
+ font-family: 'Courier New';
+}
+.ahem {
+ font-family: ahem;
+}
+.hyphens {
+ hyphens: auto;
+ -webkit-hyphens: auto;
+ -moz-hyphens: auto;
+ -ms-hyphens: auto;
+}
+.break-word {
+ word-wrap: break-word;
+}
+.break-all {
+ word-break: break-all;
+}
+</style>
+<body lang="en-us">
+<dl>
+ <dt>hyphens
+ <dd><div class="hyphens">hyphenation is</div>
+ <dd><div class="hyphens">hyphenation</div>
+ <dt>hyphens break-word
+ <dd><div class="hyphens break-word">hyphenation is</div>
+ <dd><div class="hyphens break-word">hyphenation</div>
+ <dt>hyphens break-all
+ <dd><div class="hyphens break-all">hyphenation is</div>
+ <dd><div class="hyphens break-all">hyphenation</div>
+ <dt>hyphens break-all break-word
+ <dd><div class="hyphens break-all break-word">hyphenation is</div>
+ <dd><div class="hyphens break-all break-word">hyphenation</div>
+ <dt>break-word
+ <dd><div class="ahem break-word">XXXXXXXX)</div>
+ <dt>break-all
+ <dd><div class="ahem break-all">XXXXXXXX)</div>
+ <dt>break-all break-word
+ <dd><div class="ahem break-all break-word">XXXXXXXX)</div>
+</dl>
+</body>

Powered by Google App Engine
This is Rietveld 408576698