Skip to content

Commit a97f1a0

Browse files
committed
[css-grid-2] Swap 'definite/indefinite grid span' for explicit/implicit/automatic, and fix definitions. w3c#6905
1 parent 67ba83f commit a97f1a0

1 file changed

Lines changed: 13 additions & 30 deletions

File tree

css-grid-2/Overview.bs

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2830,15 +2830,17 @@ Placing Grid Items</h2>
28302830
<dt><dfn export local-lt="span|row span|column span">grid span</dfn>
28312831
<dd>
28322832
How many <a>grid tracks</a> the <a>grid item</a> occupies in each axis.
2833-
In a [=subgridded axis=]
2834-
if the '*-start' or '*-end' value
2835-
of its <a>grid-placement properties</a> is ''grid-row-start/auto'',
2836-
then the [=grid item=] has an <dfn export lt="indefinite grid span|indefinite row span|indefinite column span|indefinite span">indefinite span</dfn>,
2837-
and is <a href="#subgrid-span">determined</a> from its <<line-name-list>>.
2838-
Otherwise,
2839-
a <a>grid item</a>’s <a>grid span</a> is
2840-
<dfn export lt="definite grid span|definite row span|definite column span|definite span">definite</dfn>,
2841-
defaulting to 1 in each axis if it can't be otherwise determined for that axis.
2833+
The [=grid span=] in an axis can be [=implicit grid span|implicit=], [=explicit grid span|explicit=], or [=automatic grid span|automatic=]:
2834+
2835+
* If both the '*-start' and '*-end' values
2836+
of its <a>grid-placement properties</a> specify a line,
2837+
its [=grid span=] is <dfn export lt="implicit grid span|implicit row span|implicit column span|implicit span">implicit</dfn>.
2838+
* If it has an explicit ''grid-row-start/span'' value,
2839+
its [=grid span=] is <dfn export lt="explicit grid span|explicit row span|explicit column span|explicit span">explicit</dfn>.
2840+
* Otherwise, its [=grid span=] is <dfn export lt="automatic grid span|automatic row span|automatic column span|automatic span">automatic</dfn>:
2841+
if is [=subgridded=] in that axis,
2842+
its [=grid span=] is <a href="#subgrid-span">determined</a> from its <<line-name-list>>;
2843+
otherwise its [=grid span=] is 1.
28422844
</dl>
28432845

28442846
The <dfn export lt="grid-placement property">grid-placement properties</dfn>--
@@ -2869,25 +2871,6 @@ Placing Grid Items</h2>
28692871

28702872
A definite value for any two of <var>Start</var>, <var>End</var>, and <var>Span</var> in a given dimension implies a definite value for the third.
28712873

2872-
The following table summarizes the conditions under which a grid position or span is <i lt>definite</i> or <i lt>automatic</i>:
2873-
2874-
<table class='data'>
2875-
<thead>
2876-
<tr>
2877-
<td>
2878-
<th>Position
2879-
<th>Span
2880-
<tbody>
2881-
<tr>
2882-
<th>Definite
2883-
<td>At least one specified line
2884-
<td>Explicit, implicit, or defaulted span.
2885-
<tr>
2886-
<th>Automatic
2887-
<td>No lines explicitly specified
2888-
<td>N/A
2889-
</table>
2890-
28912874

28922875

28932876
<h3 id='common-uses'>
@@ -3541,13 +3524,13 @@ Subgrids</h2>
35413524

35423525
<ul>
35433526
<li>
3544-
If the <a>subgrid</a>’s <a>grid span</a> in the subgridded dimension is definite,
3527+
If the <a>subgrid</a>’s <a>grid span</a> in the subgridded dimension is [=explicit grid span|explicit=] or [=implicit grid span|implicit=],
35453528
then the number of explicit tracks in each subgridded dimension
35463529
is taken from its used <a>grid span</a> in that dimension
35473530
(regardless of its 'grid-template-*' properties).
35483531

35493532
<li>
3550-
If it has an [=indefinite grid span=]
3533+
If it has an [=automatic grid span=],
35513534
then its used <a>grid span</a> is taken
35523535
from the number of explicit tracks specified for that axis
35533536
by its 'grid-template-*' properties,

0 commit comments

Comments
 (0)