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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.internals)
4 internals.setMockHyphenation('en-us');
5 </script>
6 <style>
7 dt {
8 float: left;
9 width: 19ch;
10 }
11 dd {
12 margin-left: 20ch;
13 }
14 div {
15 border: thick solid blue;
16 width: 8ch;
17 font-family: 'Courier New';
18 }
19 .ahem {
20 font-family: ahem;
21 }
22 .hyphens {
23 hyphens: auto;
24 -webkit-hyphens: auto;
25 -moz-hyphens: auto;
26 -ms-hyphens: auto;
27 }
28 .break-word {
29 word-wrap: break-word;
30 }
31 .break-all {
32 word-break: break-all;
33 }
34 </style>
35 <body lang="en-us">
36 <dl>
37 <dt>hyphens
38 <dd><div class="hyphens">hyphenation is</div>
39 <dd><div class="hyphens">hyphenation</div>
40 <dt>hyphens break-word
41 <dd><div class="hyphens break-word">hyphenation is</div>
42 <dd><div class="hyphens break-word">hyphenation</div>
43 <dt>hyphens break-all
44 <dd><div class="hyphens break-all">hyphenation is</div>
45 <dd><div class="hyphens break-all">hyphenation</div>
46 <dt>hyphens break-all break-word
47 <dd><div class="hyphens break-all break-word">hyphenation is</div>
48 <dd><div class="hyphens break-all break-word">hyphenation</div>
49 <dt>break-word
50 <dd><div class="ahem break-word">XXXXXXXX)</div>
51 <dt>break-all
52 <dd><div class="ahem break-all">XXXXXXXX)</div>
53 <dt>break-all break-word
54 <dd><div class="ahem break-all break-word">XXXXXXXX)</div>
55 </dl>
56 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698