Re: [csswg-drafts] [css-grid] Percentages and intrinsic size

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):
and here's how it renders in Firefox Nightly and Chrome Canary 

GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
using your GitHub account

Received on Monday, 9 January 2017 22:59:19 UTC