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

Re: [csswg-drafts] [css-grid] making percentage grid-gaps zero for the purpose of intrinsic sizing doesn't make sense

From: Manuel Rego Casasnovas via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Sep 2016 13:48:34 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-247018335-1473860912-sysbot+gh@w3.org>
BTW, I've explained how I understand the percentage gaps in: 
https://github.com/w3c/csswg-drafts/issues/345#issuecomment-240333816

For widths I believe for track sizing we're already doing the same 
than in your example. In your case the 10% gap is 20px.

For heights it's different, I don't see why you're resolving the 10% 
as 10px.
I believe the behavior should be the same than if you have a grid 
like:
```css
  grid: auto 10% auto / 100px 10% 100px;
```

In that case the 10% column is resolved as 200px (against the 
intrinsic size).
And the 10% row is resolved as 0px, as the height is indefinite.

It strikes me as odd that for a row gap the 10% would be resolved 
different than a 10% track.

-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/472#issuecomment-247018335 
using your GitHub account
Received on Wednesday, 14 September 2016 13:48:42 UTC

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