Re: [csswg-drafts] [css-values-4] inherit() function: like var() for parent value, for any property (#2864)

> For width and height, I think container query units will probably work much better for most use cases, and they're already supported eveyrwhere!

Unless I'm misunderstanding, that first requires me to make a container query though, right? I can't just say `padding: calc(10 * cqh) calc(10 * cqw)`, right? I have to first create an arbitrary container query so that `cqw` and `cqh` actually refer to the right thing? This seems way more cumbersome than being able to just refer to your parent's width and height, the way percentages implicitly (but confusingly do), and the way `inherits` does. I initially came to this bug trying to find if there was anything like `pw` and `ph` (to match `vw` and `vh` and `cqw` and `cqh`), and eventually was led to this bug saying "We don't need that since you can just do `inherit(width)`, only to then scroll to the end and discover those were dropped. So back to square one.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 29 December 2023 15:41:26 UTC