@@ -1061,13 +1061,18 @@ Grid Items</h2>
1061
1061
they participate in their container's <a>grid formatting context</a> ,
1062
1062
not in a block formatting context.
1063
1063
1064
- The 'display' value of a <a>grid item</a> is <a>blockified</a> :
1065
- if the specified 'display' of an in-flow child of an element generating a <a>grid container</a>
1066
- is an inline-level value, it computes to its block-level equivalent.
1064
+ If the [=computed value|computed=] 'display' value of an element's nearest ancestor element
1065
+ (skipping ''display:contents'' ancestors)
1066
+ is ''grid'' or ''inline-grid'' ,
1067
+ the element's own 'display' value is [=blockified=] .
1067
1068
(See <a href="https://www.w3.org/TR/CSS2/visuren.html#dis-pos-flo">CSS2.1§9.7</a> [[!CSS21]]
1068
- and <a href="https://www.w3.org/TR/ css-display/ #transformations">CSS Display</a> [[!CSS3-DISPLAY ]]
1069
+ and [[ css-display-3 #transformations]]
1069
1070
for details on this type of 'display' value conversion.)
1070
1071
1072
+ Note: Blockification still occurs even when the ''grid'' or ''inline-grid'' element does not end up generating a [=grid container=] box,
1073
+ e.g. when it is [=replaced element|replaced=]
1074
+ or in a ''display: none'' subtree.
1075
+
1071
1076
Note: Some values of 'display' normally trigger the creation of anonymous boxes around the original box.
1072
1077
If such a box is a <a>grid item</a> ,
1073
1078
it is blockified first,
@@ -1899,7 +1904,7 @@ Resolved Value of a Track Listing</h4>
1899
1904
The 'grid-template-rows' and 'grid-template-columns' properties are
1900
1905
<a>resolved value special case properties</a> . [[!CSSOM]]
1901
1906
1902
- When an element generates a [=grid container box=] ,
1907
+ When an element generates a [=grid container=] box ,
1903
1908
the <a href="https://www.w3.org/TR/cssom/#resolved-values">resolved value</a>
1904
1909
of the 'grid-template-rows' and 'grid-template-columns' properties is the <a>used value</a> ,
1905
1910
serialized with:
0 commit comments