Skip to content

Commit f43b8f9

Browse files
committed
[css-grid-1] Per WG resolution, zero out the automatic minimum contribution of a spanning item if it crosses a flexible track. w3c#4783.
1 parent 88d9e30 commit f43b8f9

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

css-grid-1/Overview.bs

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,12 +1285,15 @@ Automatic Minimum Size of Grid Items</h3>
12851285
is defined in <a href="https://www.w3.org/TR/css-sizing-3/">CSS Intrinsic and Extrinsic Sizing</a> [[!CSS-SIZING-3]].
12861286

12871287
To provide a more reasonable default <a>minimum size</a> for <a>grid items</a>,
1288-
the used value of an <a>automatic minimum size</a> in a given axis
1289-
on a <a>grid item</a> that is not a <a>scroll container</a>
1290-
and that spans at least one <a>track</a> in that axis
1291-
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
1292-
is its <a>content-based minimum size</a>;
1293-
the used <a>automatic minimum size</a> is otherwise zero, as usual.
1288+
the used value of its <a>automatic minimum size</a> in a given axis
1289+
is the <a>content-based minimum size</a> if all of the following are true:
1290+
1291+
* it is not a [=scroll container=]
1292+
* it spans at least one [=track=] in that axis
1293+
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
1294+
* if it spans more than one track in that axis, none of those tracks are [=flexible track|flexible=]
1295+
1296+
Otherwise, the [=automatic minimum size=] is zero, as usual.
12941297

12951298
The <dfn>content-based minimum size</dfn> for a <a>grid item</a> in a given dimension is
12961299
its <a>specified size suggestion</a> if it exists,
@@ -4910,6 +4913,32 @@ Major Changes</h4>
49104913
<wpt>
49114914
layout-algorithm/flex-and-intrinsic-sizes-001.html
49124915
</wpt>
4916+
4917+
<li id="change-2017-auto-min-across-flex">
4918+
Also zeroed out the automatic minimum contribution of a grid item
4919+
if it spans multiple tracks,
4920+
at least one of which is flexible.
4921+
(<a href="https://github.com/w3c/csswg-drafts/issues/4783">Issue 4783</a>)
4922+
4923+
<blockquote>
4924+
<p>To provide a more reasonable default <a>minimum size</a> for <a>grid items</a>,
4925+
the used value of <del>an</del> <ins>its</ins> <a>automatic minimum size</a> in a given axis
4926+
<del>on a <a>grid item</a> that is not a <a>scroll container</a>
4927+
and that spans at least one <a>track</a> in that axis
4928+
whose <a>min track sizing function</a> is ''grid-template-rows/auto''</del>
4929+
is its <a>content-based minimum size</a><del>;</del> <ins>if all of the following are true:</ins></p>
4930+
4931+
<ins>
4932+
<ul>
4933+
<li>it is not a scroll container
4934+
<li>it spans at least one [=track=] in that axis
4935+
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
4936+
<li><strong>if it spans more than one track in that axis, none of those tracks are [=flexible track|flexible=]</strong>
4937+
</ul>
4938+
</ins>
4939+
4940+
<p><ins>Otherwise, the used <a>automatic minimum size</a> is <del>otherwise</del> zero, as usual.</p>
4941+
</blockquote>
49134942
</ul>
49144943
<h4 id="minor-2017">
49154944
Minor Changes</h4>

0 commit comments

Comments
 (0)