From d9b107f32feff71089e7611f679a62ef74b4e717 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 20 Jan 2025 01:12:04 +0100 Subject: [PATCH] Issue #2681 - unprefix :-moz-modal-dialog Keep an alias in place like for :fullscreen --- layout/style/nsCSSPseudoClassList.h | 3 ++- layout/style/res/html.css | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/style/nsCSSPseudoClassList.h b/layout/style/nsCSSPseudoClassList.h index 9b1b4355e6..d52e9c9bdc 100644 --- a/layout/style/nsCSSPseudoClassList.h +++ b/layout/style/nsCSSPseudoClassList.h @@ -191,10 +191,11 @@ CSS_STATE_PSEUDO_CLASS(fullscreen, ":fullscreen", CSS_STATE_PSEUDO_CLASS(mozFullScreen, ":-moz-full-screen", 0, "", NS_EVENT_STATE_FULL_SCREEN) // Matches if a element is modal -CSS_STATE_PSEUDO_CLASS(mozModalDialog, ":-moz-modal-dialog", +CSS_STATE_PSEUDO_CLASS(modal, ":modal", CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS, "", NS_EVENT_STATE_MODAL_DIALOG) +CSS_STATE_PSEUDO_CLASS(mozModalDialog, ":-moz-modal-dialog", 0, "", NS_EVENT_STATE_MODAL_DIALOG) // Matches if the element is focused and should show a focus ring CSS_STATE_PSEUDO_CLASS(mozFocusRing, ":-moz-focusring", 0, "", NS_EVENT_STATE_FOCUSRING) diff --git a/layout/style/res/html.css b/layout/style/res/html.css index fcca8cf2ff..7a6d67f66f 100644 --- a/layout/style/res/html.css +++ b/layout/style/res/html.css @@ -827,7 +827,7 @@ dialog:not([open]) { display: none; } -dialog:-moz-modal-dialog { +dialog:modal { -moz-top-layer: top !important; }