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

@mirisuzanne 

>  It seems likely to me that if we don't make style the default, authors are likely to add it as a global setting anyway - similar to the way they currently change box-sizing globally. 

I was going to ask this in a different thread but I found this here. It seems to me that the way the spec is currently defined, it will soon become "best practice" to do something like:

```css
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  container-type: style size;
}
```
That is, I can't think of a scenario where I wouldn't want the ability to drop in a container query for size or style whereever I please. But, that said, I don't really understand the performance implications of setting this globally but _not_ querying the style.

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


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

Received on Thursday, 5 May 2022 21:43:44 UTC