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: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Fri, 16 Sep 2016 20:01:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-247694824-1474056103-sysbot+gh@w3.org>
> So you're saying you want to back-compute
> percentages for grid-gap, but not for track sizes? 

Yes.

> In both axes or just one?

Both.

> I am somewhat interested in having grid-gaps work identically to
> similarly-sized empty tracks, for simplicity.

Sure, I can understand that, but what I suggest is a small amendment
that would be a major benefit for authors.  And it makes percentages
here more consistent with how they work in general.

Note that I'm not suggesting making any changes to the track sizing
algorithm.  It's a fairly simple additional step after that.
(maybe at the end of ยง5.2. "Sizing Grid Containers"?)

> I'm also open to other ideas.

It might be possible to improve percentage min track sizing too.
One idea is that we could also check that each track with a percentage
min sizing that its current size (from 'auto') is at least the size
it would have using the intrinsic size as the percentage basis.
If not, increase the intrinsic size so that each minimum will be met.
(This is just a heuristic nudge though, I'm not suggesting we should
re-run the track sizing algorithm again after that.)

> Can you post some
> kind of position statement from your/Mozilla's
> perspective into #347 and we can go from there?

I'll discuss this with @dbaron et al.


-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/472#issuecomment-247694824 
using your GitHub account
Received on Friday, 16 September 2016 20:02:01 UTC

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