Re: [csswg-drafts] [css-contain] CQ vs shadow boundaries (#5984)

To clarify, neither approach uses a selector _to target the container_.  Both of these would select a `.card` for conditional styling, and the container remains implicit/contextual:

```css
@container (width > 40em) { .card { ... } }
.card:container(width > 40em) { ... }
```

Maybe they still have different shadow-DOM implications under the hood?

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


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

Received on Friday, 12 February 2021 23:24:10 UTC