Re: [csswg-drafts] [css-contain] Reference named containers for cq units (#7858)

It wouldn't be a unit, it would be a function returning a length that could be used wherever a length is expected, just like `calc(10px * 2)`.

We already have `10--cqw` meaning `calc(10 * var(--cqw))`, so `10cqw()` is not unreasonable. But not strictly necessary, since you could use things like `calc(10 * cqw(card))` or `clamp(1rem, 10 * cqi(card), 2rem)`.




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


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

Received on Sunday, 16 October 2022 00:03:39 UTC