Skip to content

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

@smfr

Description

@smfr

The note at https://www.w3.org/TR/css-overflow-3/#overflow-propagation says "Using containment disables this special handling of the HTML body 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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions