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
which specifies which ordinal group the <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> belongs to.
1102
1102
1103
1103
<p>
1104
-
A flex container will lay out its content starting from the lowest numbered ordinal group and going up.
1104
+
A flex container lays out its content in <dfndata-dfn-type=dfndata-export="" id=order-modified-document-order>order-modified document order<aclass=self-linkhref=#order-modified-document-order></a></dfn>,
1105
+
starting from the lowest numbered ordinal group and going up.
1105
1106
Items with the same ordinal group are laid out in the order they appear in the source document.
1106
1107
This also affects the <ahref=http://www.w3.org/TR/CSS2/zindex.html>painting order</a><adata-biblio-type=normativedata-link-type=bibliohref=#css21title=css21>[CSS21]</a>,
1107
1108
exactly as if the elements were reordered in the document.
<pclass=note> Note: Note that grids and the <adata-link-type=dfnhref=#grid-placement-propertytitle="grid-placement properties">grid-placement properties</a> are <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-writing-modes-3/#flow-relativetitle=flow-relative>flow-relative</a>,
When <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a> overlap,
2423
-
the <ahref=http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#z-indextitle=z-index>z-index</a></a> property provides control over the drawing order of <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a>.
2423
+
the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#z-indextitle=z-index>z-index</a> property provides control over the drawing order of <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a>.
2424
2424
<adata-link-type=dfnhref=#grid-itemtitle="grid items">Grid items</a> paint <ahref=http://www.w3.org/TR/css3-flexbox/#painting>exactly the same as flex items</a><adata-biblio-type=normativedata-link-type=bibliohref=#css3-flexboxtitle=css3-flexbox>[CSS3-FLEXBOX]</a>:
2425
2425
they use <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified document order,
2426
2426
and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#z-indextitle=z-index>z-index</a> values other than <aclass=css-codedata-link-for=z-indexdata-link-type=valuetitle=auto>auto</a> create a stacking context even if <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#positiontitle=position>position</a> is <spanclass=cssdata-link-type=maybetitle=static>static</span>.
the <ahref="http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index">'z-index'</a> property provides control over the drawing order of <a>grid items</a>.
2478
+
the 'z-index' property provides control over the drawing order of <a>grid items</a>.
2479
2479
<a>Grid items</a> paint <ahref="http://www.w3.org/TR/css3-flexbox/#painting">exactly the same as flex items</a> [[!CSS3-FLEXBOX]]:
2480
-
they use 'order'-modified document order,
2480
+
they use <a>order-modified document order</a>,
2481
2481
and 'z-index' values other than <avaluefor=z-index>auto</a> create a stacking context even if 'position' is ''static''.
2482
2482
2483
2483
<pclass='note'>
@@ -2490,36 +2490,35 @@ <h3 id='z-order'>
2490
2490
and explicit 'z-index'
2491
2491
used to control their stacking order.
2492
2492
2493
-
<divclass="figure">
2494
-
<p>
2495
-
<imgalt="Image: Drawing order controlled by z-index and source order." src="images/drawing-order.png" />
2493
+
<figure>
2494
+
<imgsrc="images/drawing-order.png" />
2496
2495
2497
-
<pclass="caption">
2498
-
Drawing order controlled by z-index and source order.
2499
-
</div>
2496
+
<figcaption>Drawing order controlled by z-index and source order.</figcaption>
0 commit comments