- From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Sep 2016 20:34:20 +0000
- To: public-css-archive@w3.org
MatsPalmgren has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-grid] making percentage grid-gaps zero for the purpose of intrinsic sizing doesn't make sense == It was resolved in issue 345 that percentage grid-gaps are zero for the purpose of intrinsic sizing: https://github.com/w3c/csswg-drafts/issues/345 I think this needs to be revisited. It's counterintuitive that percentage grid-gaps are zero while percentages in other properties actually influence the intrinsic sizing. Making them zero doesn't respect the author's intent. It also contradicts how intrinsic sizing works in general: https://github.com/w3c/csswg-drafts/issues/347 I think instead we should take either of these alternative options: A. specify percentage grid-gap in some reasonable way for the purpose of intrinsic sizing that harmonize with how we want intrinsic sizing to work in general (issue 347) B. move percentage grid-gaps to the next level of the CSS Grid spec To help make a decision on this I have prototyped A in Gecko and from what I can tell, it seems fairly easy to implement and spec something that would work well. Here's an example: https://people.mozilla.org/~mpalmgren/tests/grid/percent-intrinsic-sizing.html (last two boxes are grids) and here's how it renders: https://people.mozilla.org/~mpalmgren/tests/grid/percent-intrinsic-sizing.png Thanks, Mats Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/472 using your GitHub account
Received on Tuesday, 13 September 2016 20:34:28 UTC