Skip to content

[css-contain-3] visibility/content-visibility inconsistency regarding dialogs #7163

@rwlbuis

Description

@rwlbuis

In #6939 (comment) a change was made to set visibility: visible on modal dialogs. This overwrites any visibility set on a parent element, so visibility: hidden on a parent would not hide the modal dialog.

For content-visibility however the expectation is different. This test verifies that content-visibility: hidden hides the complete subtree, including the modal dialog:
https://github.com/web-platform-tests/wpt/blob/830ae49918/css/css-contain/content-visibility/content-visibility-with-top-layer-002.tentative.html

To me this feels inconsistent and potentially confusing to web developers. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions