[csswg-drafts] visibility/content-visibility inconsistency regarding dialogs (#7163)

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

== visibility/content-visibility inconsistency regarding dialogs ==
In https://github.com/w3c/csswg-drafts/issues/6939#issuecomment-1016679588 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?

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


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

Received on Monday, 21 March 2022 14:11:47 UTC