Skip to content

Commit cbb7f52

Browse files
committed
[css-grid] Replaced <length> | <percentage> by <length-percentage>
1 parent c1ef3a6 commit cbb7f52

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

css-grid/Overview.bs

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,29 +1238,26 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
12381238
[ <<line-names>>? [ <<fixed-size>> | <<fixed-repeat>> ] ]* <<line-names>>?
12391239
<dfn>&lt;explicit-track-list></dfn> = [ <<line-names>>? <<track-size>> ]+ <<line-names>>?
12401240
1241-
<dfn>&lt;track-size></dfn> = <<track-breadth>> | minmax( <<inflexible-breadth>> , <<track-breadth>> ) | fit-content( [ <<length>> | <<percentage>> ] )
1241+
<dfn>&lt;track-size></dfn> = <<track-breadth>> | minmax( <<inflexible-breadth>> , <<track-breadth>> ) | fit-content( <<length-percentage>> )
12421242
<dfn>&lt;fixed-size></dfn> = <<fixed-breadth>> | minmax( <<fixed-breadth>> , <<track-breadth>> ) | minmax( <<inflexible-breadth>> , <<fixed-breadth>> )
1243-
<dfn>&lt;track-breadth></dfn> = <<length>> | <<percentage>> | <<flex>> | min-content | max-content | auto
1244-
<dfn>&lt;inflexible-breadth></dfn> = <<length>> | <<percentage>> | min-content | max-content | auto
1245-
<dfn>&lt;fixed-breadth></dfn> = <<length>> | <<percentage>>
1243+
<dfn>&lt;track-breadth></dfn> = <<length-percentage>> | <<flex>> | min-content | max-content | auto
1244+
<dfn>&lt;inflexible-breadth></dfn> = <<length-percentage>> | min-content | max-content | auto
1245+
<dfn>&lt;fixed-breadth></dfn> = <<length-percentage>>
12461246
<dfn>&lt;line-names></dfn> = '[' <<custom-ident>>* ']'
12471247
</pre>
12481248

12491249
Where:
12501250

12511251
<dl dfn-for="grid-template-columns, grid-template-rows" dfn-type=value>
1252-
<dt><dfn><<length>></dfn>
1252+
<dt><dfn><<length-percentage>></dfn>
12531253
<dd>
1254-
A non-negative length, as defined by CSS3 Values. [[!CSS3VAL]]
1254+
A non-negative length or percentage, as defined by CSS3 Values. [[!CSS3VAL]]
12551255

1256-
<dt><dfn><<percentage>></dfn>
1257-
<dd>
1258-
A non-negative percentage, as defined by CSS3 Values. [[!CSS3VAL]]
1259-
<<percentage>> values are relative to the <a>inline size</a> of the <a>grid container</a> in column <a>grid tracks</a>,
1260-
and the <a>block size</a> of the <a>grid container</a> in row <a>grid tracks</a>.
1261-
If the <a lt="inline size">inline</a> or <a>block size</a> of the <a>grid container</a>
1262-
is <a>indefinite</a>,
1263-
<<percentage>> values relative to that size are treated as <a value for=width>auto</a>.
1256+
<<percentage>> values are relative to the <a>inline size</a> of the <a>grid container</a> in column <a>grid tracks</a>,
1257+
and the <a>block size</a> of the <a>grid container</a> in row <a>grid tracks</a>.
1258+
If the <a lt="inline size">inline</a> or <a>block size</a> of the <a>grid container</a>
1259+
is <a>indefinite</a>,
1260+
<<percentage>> values relative to that size are treated as <a value for=width>auto</a>.
12641261

12651262
<dt><dfn><<flex>></dfn>
12661263
<dd>
@@ -1303,7 +1300,7 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
13031300
Note: ''grid-template-rows/auto'' track sizes (and only ''grid-template-rows/auto'' track sizes)
13041301
can be streched by the 'align-content' and 'justify-content' properties.
13051302

1306-
<dt><dfn lt="fit-content()">fit-content( [ <<length>> | <<percentage>> ] )</dfn>
1303+
<dt><dfn lt="fit-content()">fit-content( <<length-percentage>> )</dfn>
13071304
<dd>
13081305
Represents the formula
13091306
<code>min(''max-content'', max(''auto'', <var>argument</var>))</code>,
@@ -3236,7 +3233,7 @@ Gutters: the 'grid-column-gap', 'grid-row-gap', and 'grid-gap' properties</h3>
32363233

32373234
<pre class='propdef'>
32383235
Name: grid-row-gap, grid-column-gap
3239-
Value: <<length>> | <<percentage>>
3236+
Value: <<length-percentage>>
32403237
Initial: 0
32413238
Applies to: <a>grid containers</a>
32423239
Inherited: no

0 commit comments

Comments
 (0)