-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unset is_modal flag when modal dialog is removed from the document #6216
Comments
I have a patch for chrome ready, as per the filed chrome bug. |
…document Update the testcase to align with whatwg/html#6216
…document Update the testcase to align with whatwg/html#6216
I'm now wondering why we have the "is modal" flag at all, instead of just using "in the top layer" to define the CSS rendering? I guess because fullscreen also puts the dialog in the top layer, and we don't want fullscreen dialogs to render that way? But does that mean Gecko needs to have a separate flag anyway? |
Yeah, fullscreen is a case, where dialog is in top layer but not modal. And that's right, we don't just have one flag to indicate both |
Yep, that makes sense. And indeed, unifying would be nice. I'll go poke the PR thread... |
… removed and re-added to the document, a=testonly Automatic update from web-platform-tests Dialog should not still be centered when removed and re-added to the document Follows whatwg/html#6216. -- wpt-commits: 93b2b92f9fcd41d47fae2def765c23d1d47e6984 wpt-pr: 27968
The chromium patch has been merged |
#5936 introduced a side effect that made the modal dialog to keep its modal status when it's being removed from the DOM by using the is modal flag.
This introduces an inconsistency between
top layer
andmodal dialog
, as dialog can now have modal status but not intop layer
.This feels weird because we now have two concepts. We can't use the modal status of the dialog to figure out if it's in
top layer
. In Gecko, now we need to introduce a new internal selector to reflect whether we are intop layer
, because we can't use modal status anymore.How about we also unset it when the element is being removed from the document?
cc @emilio @bfgeek
The text was updated successfully, but these errors were encountered: