Skip to content

Commit 1f18b77

Browse files
committed
[css-ruby] Move display computation above anonymous box fixup to align with how Flex and Grid handle their contents. w3c#1355
1 parent d9bb6d3 commit 1f18b77

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

css-ruby/Overview.bs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,21 @@ Anonymous Ruby Box Generation</h3>
249249
<a href="https://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">similar to those used to normalize tables</a>. [[!CSS21]]
250250

251251
<ol>
252+
253+
<li id="anon-gen-inlinize"><strong>Inlinize block-level boxes:</strong>
254+
Any in-flow boxes directly contained by a
255+
<i>ruby container</i>,
256+
<i>ruby base container</i>,
257+
<i>ruby annotation container</i>,
258+
<i>ruby base box</i>,
259+
or <i>ruby annotation box</i>
260+
are forced to be inline-level boxes,
261+
and their 'display' value computed accordingly.
262+
For example,
263+
the 'display' property of an in-flow element with ''display: block''
264+
parented by an element with ''display: ruby-text''
265+
computes to ''inline-block''.
266+
252267
<li id="anon-gen-anon-ruby"><strong>Generate anonymous ruby containers</strong>:
253268
Any <a href="https://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">consecutive</a> sequence of
254269
improperly-contained
@@ -267,22 +282,6 @@ Anonymous Ruby Box Generation</h3>
267282
is one not parented by a <i>ruby container</i>
268283
</ul>
269284

270-
<li id="anon-gen-inlinize"><strong>Inlinize block-level boxes:</strong>
271-
Any in-flow block-level boxes directly contained by a
272-
<i>ruby container</i>,
273-
<i>ruby base container</i>,
274-
<i>ruby annotation container</i>,
275-
<i>ruby base box</i>,
276-
or <i>ruby annotation box</i>
277-
are forced to be inline-level boxes,
278-
and their 'display' value computed accordingly.
279-
For example,
280-
the 'display' property of an in-flow element with ''display: block''
281-
parented by an element with ''display: ruby-text''
282-
computes to ''inline-block''.
283-
This computation occurs after any intermediary anonymous-box fixup
284-
(such as that required by internal table elements).
285-
286285
<li id="anon-gen-bare-inlines"><strong>Wrap misparented inline-level content:</strong>
287286
Any consecutive sequence of text and inline-level boxes
288287
directly parented by a <i>ruby container</i> or <i>ruby base container</i>

0 commit comments

Comments
 (0)