Re: [csswg-drafts] [css-contain-3] Revisit decision to make `style` the default `container-type` (#7066)

I think the current spec with initial value being `style` is the least attractive here because:

- Authors will accidentally stop style queries from working with `container-type: inline-size` as @fantasai [points out](https://github.com/w3c/csswg-drafts/issues/7066#issuecomment-1042410631)
- It means shipping size queries separately will require a different initial value than what's given per spec

Having all elements being style containers by default will require authors to be a bit careful with selectors inside style queries. Queries like this (selectors matching a whole lot of elements) could easily cause implementations to take a performance hit:

```
@container style(--foo: bar) {
  :first-child { color: green }
}
```


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


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

Received on Wednesday, 25 May 2022 10:57:57 UTC