Skip to content

Commit 4306a05

Browse files
committed
[css-grid-1] Clamp 'auto' contributions by a fixed max track size even when sizing under a min-content/max-content constraint. Part I: non-spanning items. #2303
1 parent 3846043 commit 4306a05

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

css-grid-1/Overview.bs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,7 +3919,9 @@ Resolve Intrinsic Track Sizes</h3>
39193919
and the <a>grid container</a> is being sized under a <a lt="min-content constraint">min/max-content constraint</a>,
39203920
set the track's <a>base size</a>
39213921
to the maximum of its items’ <a lt="min-content contribution">min/max-content contributions</a>,
3922-
respectively.
3922+
respectively,
3923+
clamped by the <a>max track sizing function</a>
3924+
if that is <a lt="fixed track sizing function">fixed</a>.
39233925

39243926
Otherwise,
39253927
set its <a>base size</a>
@@ -4481,6 +4483,23 @@ Major Changes</h4>
44814483
</ul>
44824484
</blockquote>
44834485

4486+
<li id="change-2017-track-limit-auto-min">
4487+
Limited the contributions of items to an ''grid-template-columns/auto'' minimum track
4488+
to not overflow a fixed maximum when sizing the grid under a min-content/max-content constraint.
4489+
(<a href="https://github.com/w3c/csswg-drafts/issues/2303">Issue 2303</a>)
4490+
<blockquote>
4491+
<p>If the track has an ''auto'' <a>min track sizing function</a>
4492+
and the <a>grid container</a> is being sized under a <a lt="min-content constraint">min/max-content constraint</a>,
4493+
set the track's <a>base size</a>
4494+
to the maximum of its items’ <a lt="min-content contribution">min/max-content contributions</a>,
4495+
respectively<ins>,
4496+
clamped to less than or equal to the <a>max track sizing function</a>
4497+
if that is <a lt="fixed track sizing function">fixed</a>.</ins>
4498+
</blockquote>
4499+
<blockquote>
4500+
ISSUE: Do something about spanning items.
4501+
</blockquote>
4502+
44844503
<li id="change-2017-track-alignment-sizing">
44854504
Better incorporated the alignment of tracks
44864505
('align-content'/'justify-content')

0 commit comments

Comments
 (0)