[csswg-drafts] [css-grid-1] Flexible tracks with auto min don't handle min-content constraint sizing (#5369)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid-1] Flexible tracks with auto min don't handle min-content constraint sizing ==
Follow-up to #4783: Now that the automatic minimum size of items crossing flexible tracks is zeroed out... we are not accounting for their min-content sizes at all when the grid is sized under a min-content constraint.

https://drafts.csswg.org/css-grid-1/#algo-flex-tracks handles max-content constraints in consideration of max-content sizes, but under min-content constraints any flex tracks get sized as zero. Ideally, a grid with one 1fr track should size similarly to a block container, and that analogy fails here.

We may want to consider accommodating min-content sizes of auto-min flex tracks specially.

Note: We don't exactly have interop on this case. See [testcase](http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22width%3A%202px%22%3E%0A%3Cdiv%20style%3D%22display%3A%20grid%3B%20border%3A%20solid%3B%20float%3A%20left%3B%20grid-template-columns%3A%201fr%201fr%22%3E%0A%3Cdiv%20style%3D%22grid-column%3A%201%20%2F%20-1%3B%20background%3A%20aqua%22%3Etest%3C%2Fdiv%3E%0A%3Cdiv%20style%3D%22border%3A%20solid%20orange%22%3E%3C%2Fdiv%3E%3Cdiv%20style%3D%22border%3A%20solid%20teal%22%3E%3C%2Fdiv%3E) in Chrome vs Firefox.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5369 using your GitHub account

Received on Tuesday, 28 July 2020 18:28:24 UTC