Re: [csswg-drafts] [css-contain][css-overflow] Setting containment on root should not make scrolling impossible (#9003)

If there are differences, we should address those. Do you have examples of the differences?

Beyond that, my sense is there might not currently be a path forward on this. As a workaround, I generally apply containment to the main layout blocks directly inside the `body` – something like this:

```css
body > :is(header, nav, main, aside, footer) { container: layout / inline-size; }
```

I've written a [more in-depth article about this](https://www.oddbird.net/2023/07/05/contain-root/) if you're interested.

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


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

Received on Thursday, 17 October 2024 22:52:50 UTC