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
Z-axis Ordering: the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#z-indextitle=z-index>z-index</a> property</span><aclass=self-linkhref=#z-order></a></h3>
2403
2403
2404
-
<p><adata-link-type=dfnhref=#grid-itemtitle="grid items">Grid items</a> can overlap when they are positioned into intersecting <adata-link-type=dfnhref=#grid-areatitle="grid areas">grid areas</a>.
2405
-
<adata-link-type=dfnhref=#grid-itemtitle="grid item">Grid item</a> boxes in non-intersecting areas can also overlap because of negative margins or positioning.
2406
-
2407
-
<p> When <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a> overlap,
2408
-
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>.
2409
-
<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>:
2410
-
they use <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-flexbox-1/#order-modified-document-ordertitle="order-modified document order">order-modified document order</a>,
2404
+
<p><adata-link-type=dfnhref=#grid-itemtitle="grid items">Grid items</a> can overlap when they are positioned into intersecting <adata-link-type=dfnhref=#grid-areatitle="grid areas">grid areas</a>,
2405
+
or even when positioned in non-intersecting areas because of negative margins or positioning.
2406
+
The painting order of <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a> is exactly the same as inline blocks [CSS21],
2407
+
except that <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-flexbox-1/#order-modified-document-ordertitle="order-modified document order">order-modified document order</a> is used in place of raw document order,
2411
2408
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>.
2409
+
Thus the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#z-indextitle=z-index>z-index</a> property can easily be used to control the z-axis order of grid items.
2412
2410
2413
2411
<pclass=note>
2414
2412
Note: Descendants that are positioned outside a grid item still participate in any stacking context established by the grid item.
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=css3-aligntitle=CSS3-ALIGN><aclass=self-linkhref=#css3-align></a>[CSS3-ALIGN]<dd>Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2013/WD-css3-align-20130514/>CSS Box Alignment Module Level 3</a>. 14 May 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-align-20130514/>http://www.w3.org/TR/2013/WD-css3-align-20130514/</a><dtid=css3-flexboxtitle=CSS3-FLEXBOX><aclass=self-linkhref=#css3-flexbox></a>[CSS3-FLEXBOX]<dd>Tab Atkins Jr.; Elika J. Etemad; Alex Mogilevsky. <ahref=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>CSS Flexible Box Layout Module</a>. 18 September 2012. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/</a><dtid=css3-writing-modestitle=CSS3-WRITING-MODES><aclass=self-linkhref=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dtid=css3valtitle=CSS3VAL><aclass=self-linkhref=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl></div>
3618
+
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=css3-aligntitle=CSS3-ALIGN><aclass=self-linkhref=#css3-align></a>[CSS3-ALIGN]<dd>Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2013/WD-css3-align-20130514/>CSS Box Alignment Module Level 3</a>. 14 May 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-align-20130514/>http://www.w3.org/TR/2013/WD-css3-align-20130514/</a><dtid=css3-writing-modestitle=CSS3-WRITING-MODES><aclass=self-linkhref=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dtid=css3valtitle=CSS3VAL><aclass=self-linkhref=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl></div>
0 commit comments