Skip to content

Commit 45ff284

Browse files
committed
[css-grid-1][css-grid-2] sync levels
1 parent 35cfcb0 commit 45ff284

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

css-grid-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ Naming Grid Lines: the <css>[<<custom-ident>>*]</css> syntax</h4>
16841684
</figure>
16851685
</div>
16861686

1687-
A line name cannot be <css>span</css> or <css>auto</css>,
1687+
A [=line name=] cannot be <css>span</css> or <css>auto</css>,
16881688
i.e. the <<custom-ident>> in the <<line-names>> production
16891689
excludes the keywords <css>span</css> and <css>auto</css>.
16901690

css-grid-2/Overview.bs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Link Defaults: css2 (property) margin/min-height/max-height/min-width/max-width,
2626
<pre class=link-defaults>
2727
spec:css-align-3;
2828
type:value;
29+
text:center; for:align-self;
2930
text:stretch; for:align-self
3031
text:stretch; for:align-content
3132
text:space-between; for:justify-content
@@ -1178,7 +1179,9 @@ Grid Items</h2>
11781179
Use the [=inline size=] calculation rules for non-replaced boxes
11791180
(defined in [[CSS2/visudet#blockwidth]]).
11801181

1181-
Note: This can distort the aspect ratio of the item, if it has one.
1182+
Note: This can distort the aspect ratio
1183+
of an item with a [=preferred aspect ratio=],
1184+
if its size is also constrained in the other axis.
11821185

11831186
: all other values
11841187
:: Size the item as ''width/fit-content''.
@@ -2967,7 +2970,7 @@ Numeric Indexes and Spans</h4>
29672970
Named Lines and Spans</h4>
29682971

29692972
Instead of counting lines by number,
2970-
<a>named lines</a> can be referenced by their name:
2973+
lines can be referenced by their [=line name=]:
29712974

29722975
<div class='example'>
29732976
<pre>
@@ -2978,7 +2981,7 @@ Named Lines and Spans</h4>
29782981
</pre>
29792982
</div>
29802983

2981-
Note: Note that if a <a>named grid area</a> and a <a>named line</a> have the same name,
2984+
Note: Note that if a <a>named grid area</a> has the same name as a [=line name=],
29822985
the placement algorithm will prefer to use <a>named grid area</a>’s lines instead.
29832986

29842987
If there are multiple lines of the same name,
@@ -3107,7 +3110,7 @@ Line-based Placement: the 'grid-row-start', 'grid-column-start', 'grid-row-end',
31073110
<dt><dfn id='grid-placement-slot'><<custom-ident>></dfn>
31083111
<dd>
31093112
First attempt to match the <a>grid area</a>’s edge to a <a>named grid area</a>:
3110-
if there is a <a>named line</a> with the name <css><<custom-ident>>-start</css> (for 'grid-*-start') / <css><<custom-ident>>-end</css> (for 'grid-*-end'),
3113+
if there is a [=grid line=] whose [=line name=] is <css><<custom-ident>>-start</css> (for 'grid-*-start') / <css><<custom-ident>>-end</css> (for 'grid-*-end'),
31113114
contributes the first such line to the <a>grid item</a>’s <a>placement</a>.
31123115

31133116
Note: <a>Named grid areas</a> automatically generate [=implicitly-assigned line names=] of this form,
@@ -3418,7 +3421,7 @@ Grid Item Placement Algorithm</h3>
34183421
</pre>
34193422

34203423
The number of columns needed is 6.
3421-
The <a>explicit grid</a> provides its 5 columns
3424+
The <a>explicit grid</a> provides 5 columns
34223425
(from 'grid-template-columns')
34233426
with lines number 1 through 6,
34243427
but <code>#grid-item</code>’s column position means it ends on line 7,

0 commit comments

Comments
 (0)