- From: Una Kravets via GitHub <sysbot+gh@w3.org>
- Date: Fri, 07 Oct 2022 18:57:44 +0000
- To: public-css-archive@w3.org
una has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-contain] Reference named containers for cq units == In the [[contain-level-3]](https://www.w3.org/TR/css-contain-3/) spec it is possible to name containers, referencing them in `@container`. It is also possible to use container query units. However, it seems like there is a gap (I might be missing it in the spec) for how to reference a named container when using cq units. An author might want to specify the container they are referencing when using the cq units. Using `container-name` wouldn't work, since it would set the name. Would it be possible to add a "container-reference"-type-property (name TBD) that can be accessed within an CSS declaration? I.e. for illustration: ```css .meta p { container-reference: card; font-size: clamp(1rem, 10cqi, 2rem); } ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7858 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 7 October 2022 18:57:46 UTC