Skip to content

Commit f3d4f30

Browse files
fantasaitabatkins
authored andcommitted
[css-align-3][css-flexbox-1][css-grid-1] Improve container baseline finding algo w3c#7655 w3c#7641 Part II w3c#8341
RESOLVED: first/last baseline takes from the first/last item (rather than taking highest/lowest baseline)
1 parent e5789d5 commit f3d4f30

3 files changed

Lines changed: 5 additions & 15 deletions

File tree

css-flexbox-1/Overview.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,11 +3472,8 @@ Flex Container Baselines</h3>
34723472

34733473
3. Otherwise, if any [=flex items=] in the [=startmost=] [=flex line=]
34743474
have a [=baseline set=] along the [=main axis=],
3475-
take the [=baseline set=] from the [=flex item=]
3476-
with the <em>highest</em> ([=block-start=]&ndash;most) baseline
3477-
corresponding to the [=flex container's=]'s [=alignment baseline=],
3478-
preferring the first in [=order-modified document order=]
3479-
if multiple items are tied.
3475+
take the [=baseline set=] from the first such [=flex item=]
3476+
in [=order-modified document order=].
34803477

34813478
4. Otherwise, if there are any [=flex items=] at all,
34823479
<a lt="synthesize baselines">synthesize</a> a [=baseline set=]

css-grid-1/Overview.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,11 +3745,8 @@ Grid Container Baselines</h3>
37453745

37463746
3. Otherwise, if any [=grid items=] intersecting that track
37473747
have a [=baseline set=] in the relevant axis at all,
3748-
take the [=baseline set=] from the [=grid item=]
3749-
with the <em>highest</em> ([=block-start=]&ndash;most) baseline
3750-
corresponding to the [=grid container=]'s [=alignment baseline=],
3751-
preferring the first in [=grid order=]
3752-
if multiple items are tied.
3748+
take the [=baseline set=] from the first such [=grid item=]
3749+
in [=grid order=].
37533750

37543751
4. Otherwise, if there are any [=grid items=] at all,
37553752
<a lt="synthesize baselines">synthesize</a> a [=baseline set=]

css-grid-2/Overview.bs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4304,11 +4304,7 @@ Grid Container Baselines</h3>
43044304

43054305
3. Otherwise, if any [=grid items=] intersecting that track
43064306
have a [=baseline set=] in the relevant axis at all,
4307-
take the [=baseline set=] from the [=grid item=]
4308-
with the <em>highest</em> ([=block-start=]&ndash;most) baseline
4309-
corresponding to the [=grid container=]'s [=alignment baseline=],
4310-
preferring the first in [=grid order=]
4311-
if multiple items are tied.
4307+
take the [=baseline set=] from the first such [=grid item=] in [=grid order=].
43124308

43134309
4. Otherwise, if there are any [=grid items=] at all,
43144310
<a lt="synthesize baselines">synthesize</a> a [=baseline set=]

0 commit comments

Comments
 (0)