style: Push/Pop dialog to top layer when needed.

This patch completes the top layer requirement for showModal()
Spec: https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-showmodal

Differential Revision: https://phabricator.services.mozilla.com/D74922
This commit is contained in:
sefeng 2020-05-23 01:45:33 +00:00 committed by Emilio Cobos Álvarez
parent 1fcc00a11a
commit 54d869c111
3 changed files with 6 additions and 0 deletions

View file

@ -141,6 +141,10 @@ bitflags! {
///
/// https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo
const IN_FOCUS_VISIBLE_STATE = 1 << 52;
/// State that dialog element is modal, for centered alignment
///
/// https://html.spec.whatwg.org/#centered-alignment
const IN_MODAL_DIALOG_STATE = 1 << 53;
}
}