Skip to content

Commit 77ef92c

Browse files
committed
[css-grid] Try to handle baseline-aligned items whose height depends on the size of the track, by ignoring them. Related to #1365.
1 parent 3622472 commit 77ef92c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

css-grid-1/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,9 +3703,20 @@ Resolve Intrinsic Track Sizes</h3>
37033703
so that,
37043704
when start/end-aligned together
37053705
their [[css-align-3#baseline-values|baselines align as specified]].
3706+
An item whose size depends
3707+
on the size of the tracks they span in this axis
3708+
is ignored for the purpose of calculating such “shims”.
37063709

37073710
Consider these “shims” as part of the items’ intrinsic size contribution
37083711
for the purpose of track sizing, below.
3712+
3713+
<div class=example>
3714+
For example,
3715+
if several grid items with text and ''height: auto''
3716+
are baseline-aligned with an image with ''height: 100%'',
3717+
the image is ignored when calculating the shims that the other items will have.
3718+
(And the image itself will have no shim at all.)
3719+
</div>
37093720
</ins>
37103721

37113722
<li>

0 commit comments

Comments
 (0)