- From: Miriam Suzanne via GitHub <sysbot+gh@w3.org>
- Date: Thu, 26 Jan 2023 18:43:28 +0000
- To: public-css-archive@w3.org
I suppose that was the original proposal. There is also the option of a more verbose (but more powerful) `container(<unit> [, <container-name>])` – which adjusts @tabatkins proposal to fit @Loirooriol's critique. That would only require a single function, and could also be used to access other relative units computed against the container.
```css
h2 {
font-size: calc(container(em, my-container) * 1 + container(cqi, my-container) * 2);
}
```
(I have often wanted the ability to reference the 'em' value on elements other than the root…)
--
GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7858#issuecomment-1405442399 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 26 January 2023 18:43:30 UTC