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
<p>Each in-flow child of a <adata-link-type="dfn" href="#flex-container">flex container</a> becomes a <adata-link-type="dfn" href="#flex-item">flex item</a>,
750
750
and each contiguous run of text that is directly contained inside a <adata-link-type="dfn" href="#flex-container">flex container</a> is wrapped in an anonymous <adata-link-type="dfn" href="#flex-item">flex item</a>.
751
751
However, an anonymous flex item that contains only <ahref="http://www.w3.org/TR/CSS2/text.html#white-space-prop">white space</a> (i.e. characters that can be affected by the <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">white-space</a> property)
752
-
is not rendered, as if it were <spanclass="css">display:none</span>.</p>
753
-
<divclass="example" id="example-25a54dcc">
754
-
<aclass="self-link" href="#example-25a54dcc"></a>
752
+
is not rendered (just as if it were <spanclass="css">display:none</span>).</p>
<p>Note that the inter-element white space disappears:
781
+
it does not become its own flex item,
782
+
even though the inter-element text <em>does</em> get wrapped in an anonymous flex item.</p>
783
+
<p>Note also that the anonymous item’s box is unstyleable,
784
+
since there is no element to assign style rules to.
785
+
Its contents will however inherit styles (such as font settings) from the flex container.</p>
776
786
</div>
777
787
<p>A <adata-link-type="dfn" href="#flex-item">flex item</a> establishes a new formatting context for its contents.
778
788
The type of this formatting context is determined by its <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visuren.html#propdef-display">display</a> value, as usual.
<p>In a <adata-link-type="dfn" href="#multi-line">multi-line</a><adata-link-type="dfn" href="#flex-container">flex container</a> (even one with only a single line),
1395
1405
the <adata-link-type="dfn" href="#cross-size">cross size</a> of each line
1396
1406
is the minimum size necessary to contain the <adata-link-type="dfn" href="#flex-item">flex items</a> on the line
1397
-
(after aligment due to <aclass="property" data-link-type="propdesc" href="#propdef-align-self">align-self</a>),
1407
+
(after alignment due to <aclass="property" data-link-type="propdesc" href="#propdef-align-self">align-self</a>),
1398
1408
and the lines are aligned within the flex container with the <aclass="property" data-link-type="propdesc" href="#propdef-align-content">align-content</a> property.
1399
1409
In a <adata-link-type="dfn" href="#single-line">single-line</a><adata-link-type="dfn" href="#flex-container">flex container</a>,
1400
1410
the <adata-link-type="dfn" href="#cross-size">cross size</a> of the line is the <adata-link-type="dfn" href="#cross-size">cross size</a> of the flex container,
0 commit comments