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

I believe we should reopen this issue and modify the text on the spec.

[Current text says](https://drafts.csswg.org/css-align/#column-row-gap):
> Percentages resolve to zero when specified against a content-based size (such as the logical width of a float or the auto logical height of a block-level grid container).

I think the text should be:
> Percentages resolve to zero when specified against an indefinite size (such the auto logical height of a block-level grid container).

The reason is what I have explained in the previous comment, the *content-based size* term is not valid for the engines.
At least all the browsers (Chromium, Safari, Firefox and Edge) that implement this are consistent with my proposed text, check the following codepen (which is interoperable): https://codepen.io/mrego/pen/XEvGom

So the thing is while you're computing the intrinsic width, the width is indefinite and the percentages are resolved to zero; but during layout the width is never indefinite and percentages are always resolved.
For the heights we don't compute intrinsic heights, so during layout if the height is indefinite the percentage is resolved as zero.


-- 
GitHub Notification of comment by mrego
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/509#issuecomment-381759138 using your GitHub account

Received on Monday, 16 April 2018 21:41:08 UTC