Skip to content

Commit e85a11c

Browse files
committed
[css-grid-1] Put the baseline-determining steps back into 'main, then exception' order. #3645
1 parent 477f36e commit e85a11c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

css-grid-1/Overview.bs

+8-9
Original file line numberDiff line numberDiff line change
@@ -3639,15 +3639,7 @@ Grid Container Baselines</h3>
36393639

36403640
<ol>
36413641
<li>
3642-
If the [=grid container=] does not contain any [=grid items=],
3643-
the grid container has no first (last) <a>baseline set</a>,
3644-
and one is <a lt="synthesize baselines">synthesized</a> if needed
3645-
according to the rules of its <a>alignment context</a>.
3646-
Exit from this algorithm.
3647-
3648-
<li>
3649-
Otherwise,
3650-
find the first (last) row of the [=grid container=]
3642+
Find the first (last) row of the [=grid container=]
36513643
containing at least one [=grid item=].
36523644

36533645
If any of the [=grid items=] intersecting this row
@@ -3664,6 +3656,13 @@ Grid Container Baselines</h3>
36643656
If the [=grid item=] has no <a>alignment baseline</a> in the grid's inline axis,
36653657
then one is first <a lt="synthesize baselines">synthesized</a>
36663658
from its border edges.
3659+
3660+
<li>
3661+
If the [=grid container=] does not contain any [=grid items=],
3662+
the grid container has no first (last) <a>baseline set</a>,
3663+
and one is <a lt="synthesize baselines">synthesized</a> if needed
3664+
according to the rules of its <a>alignment context</a>.
3665+
Exit from this algorithm.
36673666
</ol>
36683667

36693668
<dfn export lt="grid order|grid-modified document order">Grid-modified document order (grid order)</dfn>

0 commit comments

Comments
 (0)