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
Copy file name to clipboardExpand all lines: css-grid/Overview.bs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2521,7 +2521,7 @@ Aligning the Grid: the 'justify-content' and 'align-content' properties</h3>
2521
2521
2522
2522
If the <a>grid</a>’s outer edges do not correspond to the <a>grid container</a>’s content edges
2523
2523
(for example, if no columns are flex-sized),
2524
-
the <a>grid</a>is aligned within the content box according to the 'justify-content' and 'align-content' properties on the <a>grid container</a>.
2524
+
the <a>grid tracks</a>are aligned within the content box according to the 'justify-content' and 'align-content' properties on the <a>grid container</a>.
2525
2525
2526
2526
<div class='example'>
2527
2527
For example, the following grid is centered vertically,
<p>If the <adata-link-type="dfn" href="#grid">grid</a>’s outer edges do not correspond to the <adata-link-type="dfn" href="#grid-container">grid container</a>’s content edges
4813
4813
(for example, if no columns are flex-sized),
4814
-
the <adata-link-type="dfn" href="#grid">grid</a>is aligned within the content box according to the <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-justify-content">justify-content</a> and <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-align-content">align-content</a> properties on the <adata-link-type="dfn" href="#grid-container">grid container</a>.</p>
4814
+
the <adata-link-type="dfn" href="#grid-track">grid tracks</a>are aligned within the content box according to the <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-justify-content">justify-content</a> and <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-align-content">align-content</a> properties on the <adata-link-type="dfn" href="#grid-container">grid container</a>.</p>
<pclass="issue" id="issue-4f54519f"><aclass="self-link" href="#issue-4f54519f"></a>Is one cycle enough?</p>
5033
5033
5034
-
5034
+
5035
+
5035
5036
</li>
5037
+
<li>
5038
+
Finally, the <adata-link-type="dfn" href="#grid-container">grid container</a> is sized
5039
+
using the resulting size of the <adata-link-type="dfn" href="#grid">grid</a> as its content size,
5040
+
and the tracks are aligned within the <adata-link-type="dfn" href="#grid-container">grid container</a>
5041
+
according to the <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-align-content">align-content</a> and <aclass="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-align-3/#propdef-justify-content">justify-content</a> properties.
5042
+
<spanclass="note" role="note">Note: This can introduce extra space within or between tracks.
0 commit comments