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

Yeah I was thinking on this the whole night and I believe we should 
just keep the current implementation.
I've found some very weird issues, if a `grid-row-gap: 10%` would be 
treated as `auto` we could end up having gaps of different sizes.
[An example to represent it with percentage 
tracks](http://jsbin.com/wisehow/1/edit?html,css,output) in a grid 
with `grid-template-rows: 100px 10% 100px 10% 100px`.

![Example to represent it with percentage 
tracks](https://cloud.githubusercontent.com/assets/11602/18744152/873c7da6-80b4-11e6-96e5-f1512bbd0d5c.png)

* One item spanning the first 3 rows with a content of 300px height, 
the 10% of the 2nd row ends up being 100px.
* Another item spanning the last 3 rows, with a content of 250px 
height, the 10% of the 4th row ends up being 50px.

Probably the spec needs to be updated:
1) The percentage resolution should be done exactly as it was before 
(like in regular blocks).
2) We should explicitly say that percentage gaps are resolved as 0px 
when the height is indefinite (for widths they'll behave like regular 
blocks).


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/509#issuecomment-248861020 
using your GitHub account

Received on Thursday, 22 September 2016 10:07:44 UTC