- From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
- Date: Mon, 09 Jan 2017 22:59:13 +0000
- To: public-css-archive@w3.org
Here's my proposal for percentages in intrinsic sizing: - treat percentage track sizes as `auto` (as currently specced) - back-compute `grid-gap` percentages I think the reasoning that `grid-gap` must be treated the same as a track size is flawed. Grid gaps never contain any child content so they are more like internal padding IMO. This is why they can be back-computed safely (unlike percentage track sizes which cannot because its contents provides the min-content size that provides the basis for the back-computing. We tried back-computing those too in Gecko at first, but it didn't work out for that reason.). Here's a testcase with some examples (the two boxes at the end are grids, the first is a flexbox and the second is a block with percentage padding for comparison): https://people-mozilla.org/~mpalmgren/tests/grid/percent-intrinsic-sizing.html and here's how it renders in Firefox Nightly and Chrome Canary respectively: https://people-mozilla.org/~mpalmgren/tests/grid/percent-intrinsic-sizing.png -- GitHub Notification of comment by MatsPalmgren Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/509#issuecomment-271435201 using your GitHub account
Received on Monday, 9 January 2017 22:59:19 UTC