W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

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

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Jan 2017 12:14:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-271560718-1484050494-sysbot+gh@w3.org>
> * treat percentage track sizes as `auto` (as currently specced)

I'm not sure I like this approach, as I've shown in the previous 
example 2 tracks of 10% will have different sizes; that seems quite 
strange to me.

> Grid gaps never contain any child content so they are more like 
internal padding IMO.

If an item spans several tracks, the item is somehow inside the gap. 
The spec says: "For the purpose of track sizing, each gutter is 
essentially treated as an extra, empty track of the specified size."

Of course, it depends on how you resolve the percentage of the gap for
 the gutter, but if we use `auto` we might end up having gaps of 
different sizes (which again seems weird o me).

IMHO, we should try to make percentage tracks the very same than 
percentage gaps. So it'd be the same to use `grid-template-rows: 100px
 10% 100px 10% 100px;` than `grid-template-rows: 100px 100px 100px; 
grid-row-gap: 10%;`.


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/509#issuecomment-271560718 
using your GitHub account
Received on Tuesday, 10 January 2017 12:15:01 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:37 UTC