W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

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

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Sep 2016 10:07:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-248861020-1474538850-sysbot+gh@w3.org>
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 

* 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 

GitHub Notification of comment by mrego
Please view or discuss this issue at 
using your GitHub account
Received on Thursday, 22 September 2016 10:07:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:03 UTC