@@ -1046,11 +1046,14 @@ Line Breaking Details</h3>
1046
1046
background: white;
1047
1047
}
1048
1048
</style>
1049
- <p> Japanese is usually laid out to allow line breaks within words.
1050
- However, it is sometimes preferred to suppress these wrapping opportunities and to only allow wrapping at the end of certain sentence fragments.
1051
- This is most commonly done in very short pieces of text, such as headings, table or figure captions.
1052
-
1053
- This can be achieved by marking the allowed wrapping points with <{wbr}> or U+200B ZERO WIDTH SPACE,
1049
+ <p> Japanese is usually typeset allowing line breaks within words.
1050
+ However, it is sometimes preferred to suppress these wrapping opportunities
1051
+ and to only allow wrapping at the end of certain sentence fragments.
1052
+ This is most commonly done in very short pieces of text,
1053
+ such as headings and table or figure captions.
1054
+
1055
+ This can be achieved by marking the allowed wrapping points
1056
+ with <{wbr}> or U+200B ZERO WIDTH SPACE,
1054
1057
and suppressing the other ones using ''word-break: keep-all'' .
1055
1058
1056
1059
For instance, the following markup can produce either of the renderings below,
@@ -1060,12 +1063,16 @@ Line Breaking Details</h3>
1060
1063
</code></pre>
1061
1064
1062
1065
<table class=data>
1066
+ <colgroup span=1></colgroup>
1067
+ <colgroup span=2></colgroup>
1068
+ <thead>
1063
1069
<tr>
1064
1070
<td>
1065
1071
<th><code highlight=css> h1 { word-break: normal }</code>
1066
1072
<th><code highlight=css> h1 { word-break: keep-all }</code>
1073
+ <tbody>
1067
1074
<tr>
1068
- <th> Expected rendering
1075
+ <th scope=row > Expected rendering
1069
1076
<td>
1070
1077
<pre lang=ja>
1071
1078
窓ぎわのトットちゃ
@@ -1075,7 +1082,7 @@ Line Breaking Details</h3>
1075
1082
窓ぎわの
1076
1083
トットちゃん</pre>
1077
1084
<tr>
1078
- <th> Result in your browser
1085
+ <th scope=row > Result in your browser
1079
1086
<td>
1080
1087
<samp lang=ja>
1081
1088
窓ぎわの<wbr> トットちゃん
0 commit comments