- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 May 2021 19:48:46 +0000
- To: public-css-archive@w3.org
Adding `:container` probably exceeds acceptable complexity limits. It makes invalidation much more annoying, since we would need to figure out if a given selector _would have matched_ without `:container` pseudos, and in order do that correctly we would probably need to evaluate any non-matching selector with `:container` _twice_, which I'd rather not do.
Also, you know Emilio won't accept that it makes Element.matches depend on _layout_.
Also _also_, it's not compatible with other CSS things, e.g.:
```
body {
width: 40em;
contain: inline-size style layout;
}
body:has(.card:container(width > 30em)) {
width: 20em;
}
```
--
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6247#issuecomment-849071242 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 May 2021 19:48:48 UTC