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

> So what I really want is just new units like `%w` and `%h`, to differentiate between the width and height when referring to percentages. That way I could just do something like `padding: 10%h 10%w`. Should I open a new issue to discuss that specifically?

I really think those are just container query length units use cases. Exposing them without the containment could lead to circularity.

Some other cases could also be handled by `aspect-ratio`, like `height: 10%w` might be expressed as `aspect-ratio: 10;` (if we know that the width will be 100%).

Can you provide your use cases to look at, so it would be easier to gauge if they can be done with what we have, or if `inherit()` could help with them? What are you trying to achieve? Not as a reduced _solution without a problem_, but as a problem itself.

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2864#issuecomment-1872284637 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 19:10:51 UTC