[csswg-drafts] [css-contain] The interaction between containment on the HTML element, and overflow propagation is insufficiently specified (#7184)

smfr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain] The interaction between containment on the HTML element, and overflow propagation is insufficiently specified ==
The note at https://www.w3.org/TR/css-overflow-3/#overflow-propagation says "Using [containment](https://www.w3.org/TR/css-contain-1/#containment) disables this special handling of the HTML [body](https://html.spec.whatwg.org/multipage/sections.html#the-body-element) element."

However, it doesn't say which element `containment` is being applied to in this scenario; it might be the `body` or the `html`.

So the behavior of this scenario isn't very clear:
```
html { contain: layout; }
body { overflow: hidden; }
```

Does `overflow:hidden` propagation from the body to the viewport, or does `containment` on the `html` prevent that propagation?

Test case at https://jsfiddle.net/qj9v0h2t/

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7184 using your GitHub account


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

Received on Wednesday, 30 March 2022 18:26:47 UTC