Skip to content

Commit fec1b8d

Browse files
committed
1 parent 0e1d5d6 commit fec1b8d

2 files changed

Lines changed: 12 additions & 16 deletions

File tree

css-grid/Overview.bs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,14 +2425,12 @@ Aligning the Grid: the 'justify-content' and 'align-content' properties</h3>
24252425
<h3 id='z-order'>
24262426
Z-axis Ordering: the 'z-index' property</h3>
24272427

2428-
<a>Grid items</a> can overlap when they are positioned into intersecting <a>grid areas</a>.
2429-
<a>Grid item</a> boxes in non-intersecting areas can also overlap because of negative margins or positioning.
2430-
2431-
When <a>grid items</a> overlap,
2432-
the 'z-index' property provides control over the drawing order of <a>grid items</a>.
2433-
<a>Grid items</a> paint <a href="http://www.w3.org/TR/css3-flexbox/#painting">exactly the same as flex items</a> [[!CSS3-FLEXBOX]]:
2434-
they use <a>order-modified document order</a>,
2428+
<a>Grid items</a> can overlap when they are positioned into intersecting <a>grid areas</a>,
2429+
or even when positioned in non-intersecting areas because of negative margins or positioning.
2430+
The painting order of <i>grid items</i> is exactly the same as inline blocks [CSS21],
2431+
except that <i>order-modified document order</i> is used in place of raw document order,
24352432
and 'z-index' values other than <a value for=z-index>auto</a> create a stacking context even if 'position' is ''static''.
2433+
Thus the 'z-index' property can easily be used to control the z-axis order of grid items.
24362434

24372435
<p class='note'>
24382436
Note: Descendants that are positioned outside a grid item still participate in any stacking context established by the grid item.

css-grid/Overview.html

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,14 +2401,12 @@ <h3 class="heading settled heading" data-level=9.4 id=grid-align><span class=sec
24012401
<h3 class="heading settled heading" data-level=9.5 id=z-order><span class=secno>9.5 </span><span class=content>
24022402
Z-axis Ordering: the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-position-3/#z-index title=z-index>z-index</a> property</span><a class=self-link href=#z-order></a></h3>
24032403

2404-
<p> <a data-link-type=dfn href=#grid-item title="grid items">Grid items</a> can overlap when they are positioned into intersecting <a data-link-type=dfn href=#grid-area title="grid areas">grid areas</a>.
2405-
<a data-link-type=dfn href=#grid-item title="grid item">Grid item</a> boxes in non-intersecting areas can also overlap because of negative margins or positioning.
2406-
2407-
<p> When <a data-link-type=dfn href=#grid-item title="grid items">grid items</a> overlap,
2408-
the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-position-3/#z-index title=z-index>z-index</a> property provides control over the drawing order of <a data-link-type=dfn href=#grid-item title="grid items">grid items</a>.
2409-
<a data-link-type=dfn href=#grid-item title="grid items">Grid items</a> paint <a href=http://www.w3.org/TR/css3-flexbox/#painting>exactly the same as flex items</a> <a data-biblio-type=normative data-link-type=biblio href=#css3-flexbox title=css3-flexbox>[CSS3-FLEXBOX]</a>:
2410-
they use <a data-link-type=dfn href=http://dev.w3.org/csswg/css-flexbox-1/#order-modified-document-order title="order-modified document order">order-modified document order</a>,
2404+
<p> <a data-link-type=dfn href=#grid-item title="grid items">Grid items</a> can overlap when they are positioned into intersecting <a data-link-type=dfn href=#grid-area title="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 <a data-link-type=dfn href=#grid-item title="grid items">grid items</a> is exactly the same as inline blocks [CSS21],
2407+
except that <a data-link-type=dfn href=http://dev.w3.org/csswg/css-flexbox-1/#order-modified-document-order title="order-modified document order">order-modified document order</a> is used in place of raw document order,
24112408
and <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-position-3/#z-index title=z-index>z-index</a> values other than <a class=css-code data-link-for=z-index data-link-type=value title=auto>auto</a> create a stacking context even if <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-position-3/#position title=position>position</a> is <span class=css data-link-type=maybe title=static>static</span>.
2409+
Thus the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-position-3/#z-index title=z-index>z-index</a> property can easily be used to control the z-axis order of grid items.
24122410

24132411
<p class=note>
24142412
Note: Descendants that are positioned outside a grid item still participate in any stacking context established by the grid item.
@@ -3617,11 +3615,11 @@ <h2 class="no-num no-ref heading settled heading" id=references><span class=cont
36173615

36183616
<h3 class="no-num no-ref heading settled heading" id=normative><span class=content>
36193617
Normative References</span><a class=self-link href=#normative></a></h3>
3620-
<div data-fill-with=normative-references><dl><dt id=css21 title=CSS21><a class=self-link href=#css21></a>[CSS21]<dd>Bert Bos; et al. <a href=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: <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dt id=css3-align title=CSS3-ALIGN><a class=self-link href=#css3-align></a>[CSS3-ALIGN]<dd>Elika J. Etemad; Tab Atkins Jr.. <a href=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: <a href=http://www.w3.org/TR/2013/WD-css3-align-20130514/>http://www.w3.org/TR/2013/WD-css3-align-20130514/</a><dt id=css3-flexbox title=CSS3-FLEXBOX><a class=self-link href=#css3-flexbox></a>[CSS3-FLEXBOX]<dd>Tab Atkins Jr.; Elika J. Etemad; Alex Mogilevsky. <a href=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: <a href=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/</a><dt id=css3-writing-modes title=CSS3-WRITING-MODES><a class=self-link href=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <a href=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: <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dt id=css3val title=CSS3VAL><a class=self-link href=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=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: <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dt id=rfc2119 title=RFC2119><a class=self-link href=#rfc2119></a>[RFC2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl></div>
3618+
<div data-fill-with=normative-references><dl><dt id=css21 title=CSS21><a class=self-link href=#css21></a>[CSS21]<dd>Bert Bos; et al. <a href=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: <a href=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dt id=css3-align title=CSS3-ALIGN><a class=self-link href=#css3-align></a>[CSS3-ALIGN]<dd>Elika J. Etemad; Tab Atkins Jr.. <a href=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: <a href=http://www.w3.org/TR/2013/WD-css3-align-20130514/>http://www.w3.org/TR/2013/WD-css3-align-20130514/</a><dt id=css3-writing-modes title=CSS3-WRITING-MODES><a class=self-link href=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <a href=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: <a href=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dt id=css3val title=CSS3VAL><a class=self-link href=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <a href=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: <a href=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dt id=rfc2119 title=RFC2119><a class=self-link href=#rfc2119></a>[RFC2119]<dd>S. Bradner. <a href=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <a href=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a></dl></div>
36213619

36223620
<h3 class="no-num no-ref heading settled heading" id=informative><span class=content>
36233621
Informative References</span><a class=self-link href=#informative></a></h3>
3624-
<div data-fill-with=informative-references><dl></dl></div>
3622+
<div data-fill-with=informative-references><dl><dt id=css3-flexbox title=CSS3-FLEXBOX><a class=self-link href=#css3-flexbox></a>[CSS3-FLEXBOX]<dd>Tab Atkins Jr.; Elika J. Etemad; Alex Mogilevsky. <a href=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: <a href=http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/>http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/</a></dl></div>
36253623

36263624
<h2 class="no-num no-ref heading settled heading" id=index><span class=content>
36273625
Index</span><a class=self-link href=#index></a></h2>

0 commit comments

Comments
 (0)