Re: [csswg-drafts] [css-flexbox][css-grid] Choose a single option for resolving padding and margin percent values of grid/flex items

> Our stated reason was that the aspect-ratio hack was the only significant case (that is, the only case that showed up in non-trivial numbers in our use-counters) for using % padding in the first place. Virtually nobody was using % padding for anything else at all.
> 
> Thus, there was no argument for making %s relative to each axis, besides a weak sense of theoretical purity ("what it should have been to start with"). And, since we can't change the behavior for block layout, that's directly clashing with the other theoretical-purity argument, that %s on padding should work the same in all display modes.

I'll have to agree with @tabatkins here, there's been previous cases where the spec leans on an already established behavior or convention rather than theoretical purity, and a reduced example case could be the spelling of the `nowrap` value for the `white-space` property. Maintaining consistency and following Chrome's approach seems more logical to me, however I'd still like to see an expansion of @marcvangend's idea for `%w` or `%h` units, independently of their spelling (I'm up for using syntax similar to those of viewport-relative units),  as it provides a more granular control.

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

Received on Wednesday, 27 December 2017 12:19:00 UTC