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

That doesn't seem ideal, because then you cannot combine measures from multiple containers.

What if instead of `cq*` units we got a function that would accept an optional container name? E.g. `container([w | h | min | max] [of [<custom-ident> | closest] ]?)`

Then one could use [custom units](https://github.com/w3c/csswg-drafts/issues/7379) to have a `--cq*` unit that does whatever they want.

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


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

Received on Monday, 10 October 2022 21:29:05 UTC