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> If an absolutely positioned element’s <adata-link-type=dfntitle="containing block">containing block</a>
2251
2251
is generated by a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>,
2252
-
the <adata-link-type=dfnhref=#grid-placement-propertytitle="grid-placement properties">grid-placement properties</a> can be used to constrain it to a particular <adata-link-type=dfnhref=#grid-areatitle="grid area">grid area</a>,
2253
-
similar to how they affect regular <adata-link-type=dfnhref=#grid-itemtitle="grid items">grid items</a>.
2252
+
its containing block edges are the edges of the element’s <adata-link-type=dfnhref=#grid-areatitle="grid area">grid area</a>
2253
+
as given by its <adata-link-type=dfnhref=#grid-placement-propertytitle="grid-placement properties">grid-placement properties</a>.
2254
2254
In this case, an <aclass=css-codedata-link-for="<grid-line>" data-link-type=valuehref=#grid-placement-autotitle=auto>auto</a> value for a <adata-link-type=dfnhref=#grid-placement-propertytitle="grid-placement property">grid-placement property</a>
2255
-
indicates the corresponding padding edge of the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>.
2255
+
contributes the corresponding padding edge of the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> as a line.
2256
+
(Thus, by default, the <adata-link-type=dfntitle="containing block">containing block</a> will correspond to the padding edges of the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>.)
2257
+
The offset properties (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#toptitle=top>top</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#righttitle=right>right</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#bottomtitle=bottom>bottom</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-position-3/#lefttitle=left>left</a>)
2258
+
then indicate offsets inwards from the corresponding edges
2259
+
of the resulting <adata-link-type=dfntitle="containing block">containing block</a>, as normal.
2256
2260
2257
2261
<pclass=note> Note: Note that, while absolutely-positioning an element to a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>
2258
2262
does allow it to align to that container’s <adata-link-type=dfnhref=#grid-linetitle="grid lines">grid lines</a>,
grid-row-start: 1; /* 1st grid row line = top of grid container */
2279
+
grid-row-end: span 2; /* 3rd grid row line */
2280
+
grid-column-start: 3; /* 3rd grid col line */
2281
+
grid-column-end: auto; /* right padding edge */
2282
+
/* <adata-link-type=dfntitle="containing block">Containing block</a> covers the top right quadrant of the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> */
0 commit comments