OLD | NEW |
1 <head> | 1 <head> |
2 <style type="text/css"> | 2 <style type="text/css"> |
3 @font-face { | 3 @font-face { |
4 font-family: notosymbol; | 4 font-family: notosymbol; |
5 src: | 5 src: |
6 url("../../third_party/NotoSansSymbol/NotoSansSymbols-Regular-u1d49e,1f1
ef.ttf"); | 6 url("../../third_party/NotoSansSymbol/NotoSansSymbols-Regular-u1d49e,1f1
ef.ttf"); |
7 } | 7 } |
8 | 8 |
9 .breakbox { | 9 .breakbox { |
10 font-family: notosymbol; | 10 font-family: notosymbol; |
11 word-break: break-all; | 11 word-break: break-all; |
12 border: solid blue; | 12 border: solid blue; |
13 font-size: 36px; | 13 font-size: 36px; |
14 width: 5em; } | 14 width: 5em; } |
15 </style> | 15 </style> |
16 </head> | 16 </head> |
17 <p>The following box should break the sequence of symbols at the 5 character mar
k | 17 <p>The following box should break the sequence of symbols at the 5 character mar
k |
18 and not overflow the blue box. This is because U+1D49 is a number category | 18 and not overflow the blue box. This is because U+1D49E has a general category(gC
) of Letter, for which break-all applies.</p> |
19 unicode character, for which break-all applies.</p> | |
20 <div class="breakbox"> | 19 <div class="breakbox"> |
21 𝒞𝒞𝒞𝒞𝒞𝒞𝒞𝒞
d49e;𝒞 | 20 𝒞𝒞𝒞𝒞𝒞𝒞𝒞𝒞
d49e;𝒞 |
22 </div> | 21 </div> |
23 <p>The following box should not break the sequence of symbols since U+1F1EF is n
ot | 22 <p>The following box should break between a pair of regional indicators |
24 a letter or number category character.</p> | 23 ( U+1F1EF and U+1F1F5 ) because |
| 24 they (as a pair) act like Ideographs (LB=ID) whether or not 'word-break' is brea
k-all. |
| 25 </p> |
25 <div class="breakbox"> | 26 <div class="breakbox"> |
26 🇯🇵🇯🇵🇯🇵🇯🇵
f1ef;🇵🇯🇵🇯🇵🇯🇵 | 27 🇯🇵🇯🇵🇯🇵🇯🇵
f1ef;🇵🇯🇵🇯🇵🇯🇵 |
27 </div> | 28 </div> |
| 29 <!-- |
| 30 TODO(jshin): Add a test string made of non-BMP characters that would |
| 31 overflow even with 'word-break: break-all'. LB=IS or LB=NS would work. |
| 32 https://bugs.chromium.org/p/chromium/issues/detail?id=661320 |
| 33 --> |
OLD | NEW |