Re: [csswg-drafts] [css-contain-3] Make `<container-query>` optional in `@container` (#9192)

What I tried to explain above is that I don't see how the proposal actually improves this problem. It seems based on a misunderstanding of how cq units resolve. To be clearer,

```css
@container word-card {
  #target { height: min(100cqw / var(--total-aspect-ratio), 40vh); }
}
```

will resolve the cq units just like just

```css
#target { height: min(100cqw / var(--total-aspect-ratio), 40vh); }
```

Allowing `@container word-card {}` might still be useful to apply styles with the condition that some ancestor has `container-name: word-card`, but won't improve cq units.

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


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

Received on Tuesday, 15 August 2023 19:31:01 UTC