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
<li>The contents of a <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby base">ruby base</a> or <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotation">ruby annotation</a> must remain contiguous.
924
+
<li><adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">Ruby annotations</a> must be reordered together with their <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a>.
924
925
<li>All <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a> spanned by a single <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotation">ruby annotation</a> must remain contiguous.
Bidi isolation is forced on all <adata-link-type=dfnhref=#internal-ruby-boxestitle="internal ruby boxes">internal ruby boxes</a> and the <adata-link-type=dfnhref=#ruby-containertitle="ruby container">ruby container</a>:
931
932
the <spanclass=cssdata-link-type=maybetitle=normal>normal</span> and <spanclass=cssdata-link-type=maybetitle=embed>embed</span> values of <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-unicode-bidititle=unicode-bidi>unicode-bidi</a> compute to <spanclass=cssdata-link-type=maybetitle=isolate>isolate</span>,
932
933
and <spanclass=cssdata-link-type=maybetitle=bidi-override>bidi-override</span> computes to <spanclass=cssdata-link-type=maybetitle=isolate-override>isolate-override</span>.
934
+
<pclass=note>
935
+
Note this means that implicit bidi reordering does not work across ruby bases,
936
+
so authors will need to ensure that the <adata-link-type=dfnhref=#ruby-containertitle="ruby container">ruby container</a>’s declared directionality
937
+
does indeed match its contents.
933
938
<li>
934
-
During layout, <adata-link-type=dfnhref=#ruby-segmentstitle="ruby segments">ruby segments</a>, <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">ruby annotations</a>, and <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a>
935
-
are ordered within their respective containers
939
+
During layout, <adata-link-type=dfnhref=#ruby-segmentstitle="ruby segments">ruby segments</a> are ordered within the <adata-link-type=dfnhref=#ruby-containertitle="ruby container">ruby container</a>
936
940
by the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-directiontitle=direction>direction</a> property of their <adata-link-type=dfnhref=#ruby-containertitle="ruby container">ruby container</a>.
937
-
The <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-directiontitle=direction>direction</a> property on <adata-link-type=dfnhref=#ruby-base-container-boxtitle="ruby base containers">ruby base containers</a> and <adata-link-type=dfnhref=#ruby-annotation-container-boxtitle="ruby annotation containers">ruby annotation containers</a>
938
-
is ignored for the purpose of layout.
939
-
(However, it can still inherit into the container’s children
940
-
and thereby affect the <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-writing-modes-3/#inline-base-directiontitle="inline base direction">inline base direction</a>
941
-
of any <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a> or <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">ruby annotations</a> it contains.)
941
+
<li>
942
+
Within a segment, <adata-link-type=dfnhref=#ruby-base-boxtitle="ruby bases">ruby bases</a> and <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">ruby annotations</a>
943
+
are ordered within their respective containers
944
+
by the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-directiontitle=direction>direction</a> property of the segment’s <adata-link-type=dfnhref=#ruby-base-container-boxtitle="ruby base container">ruby base container</a>.
945
+
<spanclass=note>
946
+
Note this means the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-writing-modes-3/#propdef-directiontitle=direction>direction</a> property on <adata-link-type=dfnhref=#ruby-annotation-container-boxtitle="ruby annotation containers">ruby annotation containers</a>
947
+
is ignored for the purpose of layout.
948
+
However, it can still inherit into the container’s children
949
+
and thereby affect the <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-writing-modes-3/#inline-base-directiontitle="inline base direction">inline base direction</a>
950
+
of any <adata-link-type=dfnhref=#ruby-annotation-boxtitle="ruby annotations">ruby annotations</a> it contains.
951
+
</span>
942
952
</ul>
943
953
944
-
<pclass=note>
945
-
Note this means that implicit bidi reordering does not work across ruby bases,
946
-
so authors will need to ensure that the <adata-link-type=dfnhref=#ruby-containertitle="ruby container">ruby container</a>’s declared directionality
947
-
does indeed match its contents.
954
+
<p>As with other inline-level content,
955
+
the bidi reordering of <adata-link-type=dfnhref=#internal-ruby-boxestitle="internal ruby boxes">internal ruby boxes</a> happens after line-breaking
956
+
so that content is divided across lines according to its logical order.
948
957
949
958
<p>See <adata-biblio-type=informativedata-link-type=bibliohref=#biblio-css3-writing-modestitle=biblio-css3-writing-modes>[CSS3-WRITING-MODES]</a> for a more in-depth discussion of bidirectional text in CSS.
0 commit comments