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

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