Skip to content

Commit 277d9d3

Browse files
committed
[css-flexbox] Restore accidentally-deleted text about table wrapper boxes. (Intended change was to remove anonymous wrapper handling. Table wrapper boxes aren't anonymous, but their handling was sandwiched between two related paragraphs...) Fixes #547.
1 parent e377000 commit 277d9d3

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

css-flexbox/Overview.bs

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,18 @@ Flex Items</h2>
640640
will become two separate ''display: block'' <a>flex items</a>,
641641
instead of being wrapped into a single anonymous table.
642642

643+
In the case of flex items with ''display: table'',
644+
the table wrapper box becomes the <a>flex item</a>,
645+
and the 'order' and 'align-self' properties apply to it.
646+
The contents of any caption boxes contribute to the calculation of
647+
the table wrapper box's min-content and max-content sizes.
648+
However, like 'width' and 'height', the 'flex' longhands apply to the table box as follows:
649+
the <a>flex item</a>’s final size is calculated
650+
by performing layout as if the distance between
651+
the table wrapper box's edges and the table box's content edges
652+
were all part of the table box's border+padding area,
653+
and the table box were the <a>flex item</a>.
654+
643655
<!--
644656
███ ████████ ██████ ████████ ███████ ██████
645657
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
@@ -1558,7 +1570,7 @@ The 'flex' Shorthand</h3>
15581570

15591571
<dt><dfn>none</dfn>
15601572
<dd>
1561-
The keyword ''none'' expands to ''0 0 auto''.
1573+
The keyword ''flex/none'' expands to ''0 0 auto''.
15621574
</dl>
15631575

15641576
<figure>
@@ -3389,14 +3401,31 @@ Substantive Changes and Bugfixes</h4>
33893401
requiring this computation for absolutely-positioned elements.
33903402
(<a href="https://github.com/w3c/csswg-drafts/issues/440">Issue 440</a>)
33913403
<li id="change-2016-baseline-alignment">
3392-
Change <a>flex items</a> in orthogonal flows and <a>flex items<a> without a baseline
3404+
Change <a>flex items</a> in orthogonal flows and <a>flex items</a> without a baseline
33933405
to both synthesize their alignment baseline from the <a>flex item</a>’s border box.
33943406
<li id="change-2016-main-cross-baseline">
33953407
Fix main/cross error in definition of <a>cross-axis baseline set</a>.
33963408
(<a href="https://github.com/w3c/csswg-drafts/issues/792">Issue 792</a>)
33973409
<blockquote>
33983410
<p>Otherwise, the flex container has no first/last <del>main</del><ins>cross</ins>-axis baseline set&hellip;
33993411
</blockquote>
3412+
<li id="change-2016-table-wrapper">
3413+
Restore accidentally-deleted text about tables as flex items.
3414+
See <a href="#change-2015-anonymous-fixup">anonymous box change</a>.
3415+
(<a href="https://github.com/w3c/csswg-drafts/issues/547">Issue 547</a>)
3416+
<blockquote>
3417+
<ins><p>In the case of flex items with ''display: table'',
3418+
the table wrapper box becomes the <a>flex item</a>,
3419+
and the 'order' and 'align-self' properties apply to it.
3420+
The contents of any caption boxes contribute to the calculation of
3421+
the table wrapper box's min-content and max-content sizes.
3422+
However, like 'width' and 'height', the 'flex' longhands apply to the table box as follows:
3423+
the <a>flex item</a>’s final size is calculated
3424+
by performing layout as if the distance between
3425+
the table wrapper box's edges and the table box's content edges
3426+
were all part of the table box's border+padding area,
3427+
and the table box were the <a>flex item</a>.</p></ins>
3428+
</blockquote>
34003429
</ul>
34013430

34023431
<h4 id="change-201605-clarify">

0 commit comments

Comments
 (0)