From 147713a6ac40a908854ba1917107b1c76ea95026 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Mon, 20 Jan 2025 09:11:32 +0100 Subject: [PATCH] Issue #2681 - Expose `:modal` to content. --- layout/style/nsCSSPseudoClassList.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layout/style/nsCSSPseudoClassList.h b/layout/style/nsCSSPseudoClassList.h index d52e9c9bdc..078b962ac0 100644 --- a/layout/style/nsCSSPseudoClassList.h +++ b/layout/style/nsCSSPseudoClassList.h @@ -191,10 +191,7 @@ 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(modal, ":modal", - CSS_PSEUDO_CLASS_ENABLED_IN_UA_SHEETS, - "", - NS_EVENT_STATE_MODAL_DIALOG) +CSS_STATE_PSEUDO_CLASS(modal, ":modal", 0, "", 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