Skip to content

Commit 2e09eaa

Browse files
committed
[css-display] Fix up some weirdness in blockification/inlinification rules. Shift them below the example.
1 parent e550813 commit 2e09eaa

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

css-display/Overview.bs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1>CSS Display Module Level 3</h1>
22

33
<pre class='metadata'>
4-
Status: WD
5-
Work Status: Revising
4+
Status: ED
5+
Work Status: Refining
66
ED: https://drafts.csswg.org/css-display/
77
Shortname: css-display
88
Group: csswg
@@ -579,12 +579,6 @@ Automatic Box Type Transformations</h3>
579579
to ''block'' or ''inline'' (respectively).
580580
(This has no effects on <a>display types</a> that generate no box at all,
581581
such as ''display/none'' or ''display/contents''.)
582-
Additionally, if the box originally had a [=layout-internal=] display type,
583-
blockification converts its [=inner display type=] to ''flow''.
584-
585-
Issue: Should conversion of layout-internal display types also happen for inlinification?
586-
If it does, should it change to ''flow'' or ''flow-root''?
587-
If it doesn't, then anonymous-box fixup will handle things.
588582

589583
<div class='example'>
590584
Some examples of this include:
@@ -596,12 +590,21 @@ Automatic Box Type Transformations</h3>
596590
</ul>
597591
</div>
598592

599-
If a box with a ''flow'' <a>inner display type</a> is <a>inlinified</a>,
593+
If a ''block flow'' box is <a>inlinified</a>,
594+
its <a>inner display type</a> is set to ''flow-root''
595+
so that it remains a block container.
596+
If an ''inline flow'' box is <a>inlinified</a>,
600597
it recursively <a>inlinifies</a> all of its in-flow children,
601598
so that no block-level descendants
602599
break up the inline formatting context in which it participates.
603-
If a ''block flow'' box is <a>inlinified</a>,
604-
its <a>inner display type</a> is set to ''flow-root''.
600+
601+
If a [=layout-internal=] box is <a>blockified</a>,
602+
its [=inner display type=] converts to ''flow''
603+
so that it becomes a <a>block container</a>.
604+
605+
Issue: Should conversion of layout-internal display types also happen for inlinification?
606+
If it does, should it change to ''flow'' or ''flow-root''?
607+
If it doesn't, then anonymous-box fixup will handle things.
605608

606609
The root element’s display type is always <a>blockified</a>.
607610
Additionally, a 'display' of ''display/contents'' computes to ''block'' on the root element.

0 commit comments

Comments
 (0)