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
directly parented by a <adata-link-type=dfnhref=#ruby-annotation-container-boxtitle="ruby annotation container">ruby annotation container</a>
494
494
is wrapped in an anonymous <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotation">ruby annotation</a>.
495
495
496
-
<p>However, if an anonymous box so constructed contains only <idata-link-type=dfntitle="white space">white space</i>,
496
+
<p>However, if an anonymous box so constructed contains only <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#white-spacetitle="white space">white space</a>,
497
497
it is considered <dfndata-dfn-type=dfndata-noexport="" id=intra-ruby-white-space>intra-ruby white space<aclass=self-linkhref=#intra-ruby-white-space></a></dfn>
498
498
and is either discarded as <adata-link-type=dfnhref=#inter-level-white-spacetitle="inter-level white space">inter-level white space</a>
499
499
or preserved as <adata-link-type=dfnhref=#intra-level-white-spacetitle="intra-level white space">intra-level white space</a>
<liid=anon-gen-unbreak><aclass=self-linkhref=#anon-gen-unbreak></a><strong>Suppress line breaks:</strong>
553
553
Convert all forced line breaks inside <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">ruby annotations</a> (regardless of <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-3/#propdef-white-spacetitle=white-space>white-space</a> value)
554
-
as defined for <idata-link-type=dfntitle=collapsible>collapsible</i> segment breaks in <ahref=http://www.w3.org/TR/css-text-3/#line-break-transform>CSS Text Level 3 § 4.1.2</a>.
554
+
as defined for <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#collapsible-white-spacetitle=collapsible>collapsible</a> segment breaks in <ahref=http://www.w3.org/TR/css-text-3/#line-break-transform>CSS Text Level 3 § 4.1.2</a>.
555
555
<pclass=issueid=issue-8af70305><aclass=self-linkhref=#issue-8af70305></a>The goal of this is to simplify the layout model by suppressing any line breaks within ruby annotations.
556
556
Alternatively we could try to define some kind of acceptable behavior for them.
<p>Where undiscarded white space is <idata-link-type=dfntitle=collapsible>collapsible</i>, it will collapse
758
+
<p>Where undiscarded white space is <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#collapsible-white-spacetitle=collapsible>collapsible</a>, it will collapse
759
759
following the standard <ahref=http://www.w3.org/TR/css3-text/#white-space-rules>white space processing rules</a>. <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css3texttitle=biblio-css3text>[CSS3TEXT]</a>
760
-
For <idata-link-type=dfntitle="collapsible white space">collapsible white space</i> between <adata-link-type=dfnhref=#ruby-segmentstitle="ruby segments">ruby segments</a> (<adata-link-type=dfnhref=#inter-segment-white-spacetitle="inter-segment white space">inter-segment white space</a>), however,
760
+
For <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#collapsible-white-spacetitle="collapsible white space">collapsible white space</a> between <adata-link-type=dfnhref=#ruby-segmentstitle="ruby segments">ruby segments</a> (<adata-link-type=dfnhref=#inter-segment-white-spacetitle="inter-segment white space">inter-segment white space</a>), however,
761
761
the contextual text for determining collapsing behavior is given by the <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a> on either side,
762
762
not the text on either side of the white space in source document order.
763
763
764
764
<divclass=note>
765
765
<p>Note that the white space processing rules
766
-
cause a white space sequence containing a <idata-link-type=dfntitle="segment break">segment break</i> (such as a line feed)
766
+
cause a white space sequence containing a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#segment-breaktitle="segment break">segment break</a> (such as a line feed)
767
767
to <ahref=http://www.w3.org/TR/css3-text/#line-break-transform>collapse to nothing</a> between Han and Kana characters.
768
768
This means that Chinese and Japanese ruby can safely use white space for indentation of the ruby markup.
769
769
For example, the following markup will display without any spaces:
<pclass=issueid=issue-6f614186><aclass=self-linkhref=#issue-6f614186></a>This example actually doesn’t trigger the rule in question. Come up with one that does.
775
-
<p>However, white space that does not contain a <idata-link-type=dfntitle="segment break">segment break</i> does not collapse completely away,
775
+
<p>However, white space that does not contain a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#segment-breaktitle="segment break">segment break</a> does not collapse completely away,
776
776
so this markup will display with a space between the first and second ruby pairs:
<p>Line-breaking within a <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby base">ruby base</a> is only allowed if the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-3/#propdef-white-spacetitle=white-space>white-space</a> property
915
915
of the <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby base">ruby base</a> and all its parallel <adata-link-type=dfnhref=#ruby-annotation-boxtitle=annotations>annotations</a> allow it,
916
-
and there exists a <idata-link-type=dfntitle="soft wrap opportunity">soft wrap opportunity</i><em>within</em> (i.e. not at the start or end)
916
+
and there exists a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#soft-wrap-opportunitytitle="soft wrap opportunity">soft wrap opportunity</a><em>within</em> (i.e. not at the start or end)
917
917
the content of each base/annotation box.
918
918
Since there is no structural correspondence between fragments of content
919
919
within <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a> and <adata-link-type=dfnhref=#ruby-annotation-boxtitle=annotations>annotations</a>,
<p>The ruby content expands as defined for normal text justification
1303
1303
(as defined by <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-text-3/#propdef-text-justifytitle=text-justify>text-justify</a>),
1304
-
except that if there are no <idata-link-type=dfntitle="justification opportunities">justification opportunities</i>
1304
+
except that if there are no <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#justification-opportunitytitle="justification opportunities">justification opportunities</a>
1305
1305
the content is centered.
1306
1306
<divclass=figure>
1307
1307
<p><imgalt="Diagram of glyph layout in distribute-letter aligned ruby when ruby text is shorter than base" height=91src=images/ra-dl.gifwidth=145><imgalt="Diagram of glyph layout in distribute-letter aligned ruby when ruby text is longer than base" height=91src=images/ra-dl-rb.gifwidth=145>
<p>As for <spanclass=cssdata-link-type=maybetitle=space-between>space-between</span>
1315
-
except that there exists an extra <idata-link-type=dfntitle="justification opportunities">justification opportunities</i>
1315
+
except that there exists an extra <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#justification-opportunitytitle="justification opportunities">justification opportunities</a>
1316
1316
whose space is distributed half before and half after the ruby content.
1317
1317
<divclass=example>
1318
-
<p>Since a typical implementation will by default define <idata-link-type=dfntitle="justification opportunities">justification opportunities</i>
1318
+
<p>Since a typical implementation will by default define <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#justification-opportunitytitle="justification opportunities">justification opportunities</a>
1319
1319
between every adjacent pair of CJK <idata-link-type=dfntitle=characters>characters</i>
1320
1320
and not between adjacent pairs of Latin <idata-link-type=dfntitle=characters>characters</i>,
1321
1321
this should result in the behavior recommended by <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-jlreqtitle=biblio-jlreq>[JLREQ]</a>:
0 commit comments