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> For each <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a> with a <adata-link-type=dfnhref=#definite-grid-positiontitle="definite row position">definite row position</a>
1685
1692
(that is, the <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-starttitle=grid-row-start>grid-row-start</a> and <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-endtitle=grid-row-end>grid-row-end</a> properties define a <adata-link-type=dfnhref=#definite-grid-positiontitle="definite grid position">definite grid position</a>),
1686
-
in <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified document order,
1693
+
in <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>,
1687
1694
position its <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-writing-modes-3/#inline-starttitle=inline-start>inline-start</a> edge
1688
1695
to the earliest (smallest positive index) line index
1689
1696
that ensures this item’s <adata-link-type=dfnhref=#grid-areatitle="grid area">grid area</a> will not overlap any <adata-link-type=dfnhref=#occupied-grid-celltitle="occupied grid cells">occupied grid cells</a>.
Initially the <adata-link-type=dfnhref=#auto-placement-cursortitle="auto-placement cursor">auto-placement cursor</a> at is specified with a row and column position both equal to 1.
1737
1744
1738
1745
<p> For each <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a> that hasn’t been positioned by the previous steps,
1739
-
in <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified document order:
1746
+
in <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>:
1740
1747
1741
1748
<dl>
1742
1749
<dt>If the item has a <adata-link-type=dfnhref=#definite-grid-positiontitle="definite column position">definite column position</a>:
<p> The <dfndata-dfn-type=dfndata-export="" id=grid-placement-propertytitle="grid-placement property">grid-placement properties<aclass=self-linkhref=#grid-placement-property></a></dfn>—<wbr></wbr>the longhands <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-starttitle=grid-row-start>grid-row-start</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-endtitle=grid-row-end>grid-row-end</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-column-starttitle=grid-column-start>grid-column-start</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-column-endtitle=grid-column-end>grid-column-end</a>, and their shorthands <aclass=propertydata-link-type=propdeschref=#propdef-grid-rowtitle=grid-row>grid-row</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-columntitle=grid-column>grid-column</a>, and <aclass=propertydata-link-type=propdeschref=#propdef-grid-areatitle=grid-area>grid-area</a>—<wbr></wbr>allow the author to specify a <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a>’s <adata-link-type=dfnhref=#grid-placementtitle=placement>placement</a>
1858
+
<p> The <dfndata-dfn-type=dfndata-export="" id=grid-placement-propertytitle="grid-placement property">grid-placement properties<aclass=self-linkhref=#grid-placement-property></a></dfn>—<wbr>the longhands <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-starttitle=grid-row-start>grid-row-start</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-row-endtitle=grid-row-end>grid-row-end</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-column-starttitle=grid-column-start>grid-column-start</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-column-endtitle=grid-column-end>grid-column-end</a>, and their shorthands <aclass=propertydata-link-type=propdeschref=#propdef-grid-rowtitle=grid-row>grid-row</a>, <aclass=propertydata-link-type=propdeschref=#propdef-grid-columntitle=grid-column>grid-column</a>, and <aclass=propertydata-link-type=propdeschref=#propdef-grid-areatitle=grid-area>grid-area</a>—<wbr>allow the author to specify a <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a>’s <adata-link-type=dfnhref=#grid-placementtitle=placement>placement</a>
1852
1859
by providing any (or none) of the following six pieces of information:
<p> The <adata-link-type=dfnhref=#grid-placement-propertytitle="grid-placement property">grid-placement property</a> longhands are organized into three shorthands:
When <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a> overlap,
2423
2430
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
2431
<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
-
they use <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified document order,
2432
+
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>,
2426
2433
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>.
Otherwise, if the grid container has at least one <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a> whose area intersects the first row/column,
2481
-
and the first such <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a> (in <adata-link-type=dfnhref=#order-modified-grid-ordertitle="order-modified grid order"><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified grid order</a>) has a baseline
2488
+
and the first such <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a> (in <adata-link-type=dfnhref=#order-modified-grid-ordertitle="order-modified grid order">order-modified grid order</a>) has a baseline
2482
2489
parallel to the relevant axis,
2483
2490
the grid container’s baseline is that baseline.
2484
2491
2485
2492
<li>
2486
2493
Otherwise, the grid container’s baseline is <ahref=http://www.w3.org/TR/css3-writing-modes/#inline-alignment>synthesized</a>
2487
-
from the first item’s (in <adata-link-type=dfnhref=#order-modified-grid-ordertitle="order-modified grid order"><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified grid order</a>) content box,
2494
+
from the first item’s (in <adata-link-type=dfnhref=#order-modified-grid-ordertitle="order-modified grid order">order-modified grid order</a>) content box,
2488
2495
or, failing that, from the grid container’s content box.
in row-major order if calculating the inline-axis baseline,
2500
2507
or in column-major order if calculating the block-axis baseline.
2501
2508
If two items are encountered at the same time,
2502
-
they are taken in <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-flexbox-1/#propdef-ordertitle=order>order</a>-modified document order.
2509
+
they are taken in <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>.
2503
2510
2504
2511
<p>
2505
2512
When calculating the baseline according to the above rules,
0 commit comments