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
<li><ahref=#grid-containers><spanclass=secno>3.1</span> Grid Containers: the <spandata-link-type=valuetitle=grid>grid</span> and <spanclass=cssdata-link-type=maybetitle=inline-grid>inline-grid</span><spanclass=propertydata-link-type=propdesctitle=display>display</span> values</a></ul>
159
+
<li><ahref=#grid-containers><spanclass=secno>3.1</span> Establishing Grid Containers: the <spanclass=cssdata-link-for=displaydata-link-type=maybetitle=grid>grid</span> and <spanclass=cssdata-link-type=maybetitle=inline-grid>inline-grid</span><spanclass=propertydata-link-type=propdesctitle=display>display</span> values</a>
<li><ahref=#grid-align><spanclass=secno>9.4</span> Aligning the Grid: the <spanclass=propertydata-link-type=propdesctitle=justify-content>justify-content</span> and <spanclass=propertydata-link-type=propdesctitle=align-content>align-content</span> properties</a>
206
207
<li><ahref=#z-order><spanclass=secno>9.5</span> Z-axis Ordering: the <spanclass=propertydata-link-type=propdesctitle=z-index>z-index</span> property</a>
Grid Containers: the <aclass=css-codedata-link-type=valuehref=#valuedef-gridtitle=grid>grid</a> and <aclass=cssdata-link-type=maybehref=#valuedef-inline-gridtitle=inline-grid>inline-grid</a><aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visuren.html#propdef-displaytitle=display>display</a> values</span><aclass=self-linkhref=#grid-containers></a></h3>
680
+
Establishing Grid Containers: the <aclass=cssdata-link-for=displaydata-link-type=maybehref=#valuedef-gridtitle=grid>grid</a> and <aclass=cssdata-link-type=maybehref=#valuedef-inline-gridtitle=inline-grid>inline-grid</a><aclass=propertydata-link-type=propdeschref=http://www.w3.org/TR/CSS21/visuren.html#propdef-displaytitle=display>display</a> values</span><aclass=self-linkhref=#grid-containers></a></h3>
<ahref=http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>exactly like block containers do</a>. <adata-biblio-type=normativedata-link-type=bibliohref=#css21title=css21>[CSS21]</a>
700
700
The <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-overflow-3/#overflow0title=overflow>overflow</a> property applies to <adata-link-type=dfnhref=#grid-containertitle="grid containers">grid containers</a>.
701
701
702
-
<p> A <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is sized
703
-
using the rules of the formatting context in which it participates.
704
-
As a block-level box in a <adata-link-type=dfntitle="block formatting context">block formatting context</a>,
705
-
it is sized like any other block-level box that establishes a formatting context,
706
-
and as an inline-level box in an inline formatting context
707
-
it is sized as an atomic inline-level box (such as an inline-block).
708
-
In both inline and block formatting contexts,
709
-
the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>’s <aclass=cssdata-link-type=maybehref=#valuedef-autotitle=auto>auto</a> block size is its max-content size.
710
-
<spanclass=issueid=issue-839d056f><aclass=self-linkhref=#issue-839d056f></a>The block layout spec should define this?</span>
711
-
712
702
<p> Grid containers are not block containers,
713
703
and so some properties that were designed with the assumption of block layout
<p> A <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is sized
735
+
using the rules of the formatting context in which it participates.
736
+
As a block-level box in a <adata-link-type=dfntitle="block formatting context">block formatting context</a>,
737
+
it is sized like any other block-level box that establishes a formatting context,
738
+
with an <aclass=cssdata-link-type=maybehref=#valuedef-autotitle=auto>auto</a> inline size calculated as for in-flow block boxes.
739
+
As an inline-level box in an inline formatting context,
740
+
it is sized as an atomic inline-level box (such as an inline-block).
741
+
In both inline and block formatting contexts,
742
+
the <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a>’s <aclass=cssdata-link-type=maybehref=#valuedef-autotitle=auto>auto</a> block size is its max-content size.
743
+
<spanclass=issueid=issue-839d056f><aclass=self-linkhref=#issue-839d056f></a>The block layout spec should define this?</span>
744
+
745
+
<p> The <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#max-content-measuretitle="max-content size">max-content size</a> of a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is
746
+
the sum of the <adata-link-type=dfnhref=#grid-containertitle="grid container’s">grid container’s</a> track sizes in the appropriate axis,
747
+
when the grid is sized under a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/
8C51
#max-content-constrainttitle="max-content constraint">max-content constraint</a>.
748
+
749
+
<p> The <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-measuretitle="min-content size">min-content size</a> of a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is
750
+
the sum of the <adata-link-type=dfnhref=#grid-containertitle="grid container’s">grid container’s</a> track sizes in the appropriate axis,
751
+
when the grid is sized under a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-constrainttitle="min-content constraint">min-content constraint</a>.
752
+
753
+
<p> See <adata-biblio-type=normativedata-link-type=bibliohref=#css3-sizingtitle=css3-sizing>[CSS3-SIZING]</a> for a definition of the terms in this section.
<p> The <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#max-content-measuretitle="max-content size">max-content size</a> of a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is
2845
-
the sum of the <adata-link-type=dfnhref=#grid-containertitle="grid container’s">grid container’s</a> track sizes in the appropriate axis,
2846
-
when the grid is sized under a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#max-content-constrainttitle="max-content constraint">max-content constraint</a>.
2847
-
2848
-
<p> The <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-measuretitle="min-content size">min-content size</a> of a <adata-link-type=dfnhref=#grid-containertitle="grid container">grid container</a> is
2849
-
the sum of the <adata-link-type=dfnhref=#grid-containertitle="grid container’s">grid container’s</a> track sizes in the appropriate axis,
2850
-
when the grid is sized under a <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-constrainttitle="min-content constraint">min-content constraint</a>.
2851
-
2852
-
<p> See <adata-biblio-type=normativedata-link-type=bibliohref=#css3-sizingtitle=css3-sizing>[CSS3-SIZING]</a> for a definition of the terms in this section.
0 commit comments