You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-text/Overview.bs
+41-41Lines changed: 41 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -805,6 +805,47 @@ Languages and Typesetting</h4>
805
805
much appreciated.
806
806
</div>
807
807
808
+
<h3 id="line-break-details">
809
+
Line Breaking Details</h3>
810
+
811
+
<p>When determining <i>line breaks</i>:
812
+
<ul>
813
+
<li>Regardless of the 'white-space' value,
814
+
lines always break at each <i>preserved</i> forced break character:
815
+
for all values, line-breaking behavior defined for
816
+
the BK, CR, LF, CM, NL, and SG line breaking classes in [[!UAX14]]
817
+
must be honored.
818
+
<li>When 'white-space' allows wrapping,
819
+
line breaking behavior defined for the WJ, ZW, and GL line-breaking classes in [[!UAX14]]
820
+
must be honored.
821
+
<li>UAs that allow wrapping at punctuation other than spaces should prioritize breakpoints.
822
+
For example, if breaks after slashes are given a lower priority than spaces,
823
+
the sequence "check /etc" will never break between the "/" and the "e".
824
+
As long as care is taken to avoid such awkward breaks, allowing breaks at
825
+
appropriate punctuation other than spaces is recommended, as it results
826
+
in more even-looking margins, particularly in narrow measures.
827
+
The UA may use the width of the containing block, the text's language,
828
+
and other factors in assigning priorities.
829
+
<li>Out-of-flow elements do not introduce a <i>forced line break</i>
830
+
or <i>soft wrap opportunity</i> in the flow.
831
+
<li>The line breaking behavior of a replaced element or other atomic inline
832
+
is equivalent to that of the Object Replacement Character (U+FFFC)
833
+
and introduces a <i>soft wrap opportunity</i> both before and after itself.
834
+
For Web-compatibility, this rule take precedence over <code>WJ</code> and <code>GL</code> handling;
835
+
in terms of [[!UAX14]],
836
+
this shifts the <code>CB</code> rule (<a href="http://www.unicode.org/reports/tr14/#LB20"><code>LB20</code></a>)
837
+
immediately above the <code>WJ</code> and <code>GL</code> rules (<a href="http://www.unicode.org/reports/tr14/#LB11"><code>LB11</code></a>/<a href="http://www.unicode.org/reports/tr14/#LB12"><code>LB12</code></a>).
838
+
<li>For <i>soft wrap opportunities</i> created by characters that disappear at the line break (e.g. U+0020 SPACE),
839
+
properties on the element containing that character control the line breaking at that opportunity.
840
+
For <i>soft wrap opportunities</i> defined by the boundary between two characters,
841
+
the properties on the element containing the boundary control breaking.
<li>For <i>soft wrap opportunities</i> before the first or after the last character of a box,
844
+
the break occurs immediately before/after the box (at its margin edge)
845
+
rather than breaking the box between its content edge and the content.
846
+
<li>Line breaking in/around Ruby is defined in Ruby box and line breaking [[!CSS3RUBY]].
847
+
</ul>
848
+
808
849
<h3 id="word-break-property">
809
850
Breaking Rules for Letters: the 'word-break' property</h3>
810
851
@@ -933,47 +974,6 @@ Languages and Typesetting</h4>
933
974
due to ''break-all'', the characters must still be shaped as if the
934
975
word were not broken.</p>
935
976
936
-
<h3 id="line-break-details">
937
-
Line Breaking Details</h3>
938
-
939
-
<p>When determining <i>line breaks</i>:
940
-
<ul>
941
-
<li>Regardless of the 'white-space' value,
942
-
lines always break at each <i>preserved</i> forced break character:
943
-
for all values, line-breaking behavior defined for
944
-
the BK, CR, LF, CM, NL, and SG line breaking classes in [[!UAX14]]
945
-
must be honored.
946
-
<li>When 'white-space' allows wrapping,
947
-
line breaking behavior defined for the WJ, ZW, and GL line-breaking classes in [[!UAX14]]
948
-
must be honored.
949
-
<li>UAs that allow wrapping at punctuation other than spaces should prioritize breakpoints.
950
-
For example, if breaks after slashes are given a lower priority than spaces,
951
-
the sequence "check /etc" will never break between the "/" and the "e".
952
-
As long as care is taken to avoid such awkward breaks, allowing breaks at
953
-
appropriate punctuation other than spaces is recommended, as it results
954
-
in more even-looking margins, particularly in narrow measures.
955
-
The UA may use the width of the containing block, the text's language,
956
-
and other factors in assigning priorities.
957
-
<li>Out-of-flow elements do not introduce a <i>forced line break</i>
958
-
or <i>soft wrap opportunity</i> in the flow.
959
-
<li>The line breaking behavior of a replaced element or other atomic inline
960
-
is equivalent to that of the Object Replacement Character (U+FFFC)
961
-
and introduces a <i>soft wrap opportunity</i> both before and after itself.
962
-
For Web-compatibility, this rule take precedence over <code>WJ</code> and <code>GL</code> handling;
963
-
in terms of [[!UAX14]],
964
-
this shifts the <code>CB</code> rule (<a href="http://www.unicode.org/reports/tr14/#LB20"><code>LB20</code></a>)
965
-
immediately above the <code>WJ</code> and <code>GL</code> rules (<a href="http://www.unicode.org/reports/tr14/#LB11"><code>LB11</code></a>/<a href="http://www.unicode.org/reports/tr14/#LB12"><code>LB12</code></a>).
966
-
<li>For <i>soft wrap opportunities</i> created by characters that disappear at the line break (e.g. U+0020 SPACE),
967
-
properties on the element containing that character control the line breaking at that opportunity.
968
-
For <i>soft wrap opportunities</i> defined by the boundary between two characters,
969
-
the properties on the element containing the boundary control breaking.
<li><ahref=#tab-size-property><spanclass=secno>4.2</span> Tab Character Size: the <spanclass=propertydata-link-type=propdesctitle=tab-size>tab-size</span> property</a></ul>
176
176
<li><ahref=#line-breaking><spanclass=secno>5</span> Line Breaking and Word Boundaries</a>
177
177
<ulclass=toc>
178
-
<li><ahref=#word-break-property><spanclass=secno>5.1</span>Breaking Rules for Letters: the <spanclass=propertydata-link-type=propdesctitle=word-break>word-break</span> property</a>
<li><ahref=#word-break-property><spanclass=secno>5.2</span>Breaking Rules for Letters: the <spanclass=propertydata-link-type=propdesctitle=word-break>word-break</span> property</a>
180
180
<li><ahref=#line-break-property><spanclass=secno>5.3</span> Breaking Rules for Punctuation: the <spanclass=propertydata-link-type=propdesctitle=line-break>line-break</span> property</a></ul>
181
181
<li><ahref=#hyphenation><spanclass=secno>6</span>Breaking Within Words</a>
<li>Regardless of the <aclass=propertydata-link-type=propdeschref=#propdef-white-spacetitle=white-space>white-space</a> value,
985
+
lines always break at each <adata-link-type=dfnhref=#preservedtitle=preserved>preserved</a> forced break character:
986
+
for all values, line-breaking behavior defined for
987
+
the BK, CR, LF, CM, NL, and SG line breaking classes in <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>
line breaking behavior defined for the WJ, ZW, and GL line-breaking classes in <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>
991
+
must be honored.
992
+
<li>UAs that allow wrapping at punctuation other than spaces should prioritize breakpoints.
993
+
For example, if breaks after slashes are given a lower priority than spaces,
994
+
the sequence "check /etc" will never break between the "/" and the "e".
995
+
As long as care is taken to avoid such awkward breaks, allowing breaks at
996
+
appropriate punctuation other than spaces is recommended, as it results
997
+
in more even-looking margins, particularly in narrow measures.
998
+
The UA may use the width of the containing block, the text’s language,
999
+
and other factors in assigning priorities.
1000
+
<li>Out-of-flow elements do not introduce a <adata-link-type=dfnhref=#forced-line-breaktitle="forced line break">forced line break</a>
1001
+
or <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunity">soft wrap opportunity</a> in the flow.
1002
+
<li>The line breaking behavior of a replaced element or other atomic inline
1003
+
is equivalent to that of the Object Replacement Character (U+FFFC)
1004
+
and introduces a <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunity">soft wrap opportunity</a> both before and after itself.
1005
+
For Web-compatibility, this rule take precedence over <code>WJ</code> and <code>GL</code> handling;
1006
+
in terms of <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>,
1007
+
this shifts the <code>CB</code> rule (<ahref=http://www.unicode.org/reports/tr14/#LB20><code>LB20</code></a>)
1008
+
immediately above the <code>WJ</code> and <code>GL</code> rules (<ahref=http://www.unicode.org/reports/tr14/#LB11><code>LB11</code></a>/<ahref=http://www.unicode.org/reports/tr14/#LB12><code>LB12</code></a>).
1009
+
<li>For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> created by characters that disappear at the line break (e.g. U+0020 SPACE),
1010
+
properties on the element containing that character control the line breaking at that opportunity.
1011
+
For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> defined by the boundary between two characters,
1012
+
the properties on the element containing the boundary control breaking.
1013
+
1014
+
<li>For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> before the first or after the last character of a box,
1015
+
the break occurs immediately before/after the box (at its margin edge)
1016
+
rather than breaking the box between its content edge and the content.
1017
+
<li>Line breaking in/around Ruby is defined in Ruby box and line breaking <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3rubytitle=biblio-css3ruby>[CSS3RUBY]</a>.
Breaking Rules for Letters: the <aclass=propertydata-link-type=propdeschref=#propdef-word-breaktitle=word-break>word-break</a> property</span><aclass=self-linkhref=#word-break-property></a></h3>
<li>Regardless of the <aclass=propertydata-link-type=propdeschref=#propdef-white-spacetitle=white-space>white-space</a> value,
1105
-
lines always break at each <adata-link-type=dfnhref=#preservedtitle=preserved>preserved</a> forced break character:
1106
-
for all values, line-breaking behavior defined for
1107
-
the BK, CR, LF, CM, NL, and SG line breaking classes in <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>
line breaking behavior defined for the WJ, ZW, and GL line-breaking classes in <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>
1111
-
must be honored.
1112
-
<li>UAs that allow wrapping at punctuation other than spaces should prioritize breakpoints.
1113
-
For example, if breaks after slashes are given a lower priority than spaces,
1114
-
the sequence "check /etc" will never break between the "/" and the "e".
1115
-
As long as care is taken to avoid such awkward breaks, allowing breaks at
1116
-
appropriate punctuation other than spaces is recommended, as it results
1117
-
in more even-looking margins, particularly in narrow measures.
1118
-
The UA may use the width of the containing block, the text’s language,
1119
-
and other factors in assigning priorities.
1120
-
<li>Out-of-flow elements do not introduce a <adata-link-type=dfnhref=#forced-line-breaktitle="forced line break">forced line break</a>
1121
-
or <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunity">soft wrap opportunity</a> in the flow.
1122
-
<li>The line breaking behavior of a replaced element or other atomic inline
1123
-
is equivalent to that of the Object Replacement Character (U+FFFC)
1124
-
and introduces a <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunity">soft wrap opportunity</a> both before and after itself.
1125
-
For Web-compatibility, this rule take precedence over <code>WJ</code> and <code>GL</code> handling;
1126
-
in terms of <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-uax14title=biblio-uax14>[UAX14]</a>,
1127
-
this shifts the <code>CB</code> rule (<ahref=http://www.unicode.org/reports/tr14/#LB20><code>LB20</code></a>)
1128
-
immediately above the <code>WJ</code> and <code>GL</code> rules (<ahref=http://www.unicode.org/reports/tr14/#LB11><code>LB11</code></a>/<ahref=http://www.unicode.org/reports/tr14/#LB12><code>LB12</code></a>).
1129
-
<li>For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> created by characters that disappear at the line break (e.g. U+0020 SPACE),
1130
-
properties on the element containing that character control the line breaking at that opportunity.
1131
-
For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> defined by the boundary between two characters,
1132
-
the properties on the element containing the boundary control breaking.
1133
-
1134
-
<li>For <adata-link-type=dfnhref=#soft-wrap-opportunitytitle="soft wrap opportunities">soft wrap opportunities</a> before the first or after the last character of a box,
1135
-
the break occurs immediately before/after the box (at its margin edge)
1136
-
rather than breaking the box between its content edge and the content.
1137
-
<li>Line breaking in/around Ruby is defined in Ruby box and line breaking <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3rubytitle=biblio-css3ruby>[CSS3RUBY]</a>.
Breaking Rules for Punctuation: the <aclass=propertydata-link-type=propdeschref=#propdef-line-breaktitle=line-break>line-break</a> property</span><aclass=self-linkhref=#line-break-property></a></h3>
0 commit comments