[css-grid] Growth limits not increased with min-content contributions of spanning items · Issue #4790 · w3c/csswg-drafts (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@Loirooriol

Description

@Loirooriol

If you have a non-spanning item, https://drafts.csswg.org/css-grid/#algo-single-span-items

But for spanning items, https://drafts.csswg.org/css-grid/#algo-spanning-items

Why do we distribute the min-content contribution in the former case, but only the minimum contribution in the latter?

.grid { display: grid } .grid.one { grid-template-columns: minmax(0, min-content) } .grid.two { grid-template-columns: repeat(2, minmax(0, min-content)) } .grid > .item { min-width: 0; background: cyan } .grid.two > .item { grid-column: span 2 }

Foo
Foo

looks like

Thus violating

Note: This step is a simplification of the steps below for handling spanning items, and should yield the same behavior as running those instructions on items with a span of 1.