It's just a matter of exposing the internal :-internal-modal-dialog pseudo-class to the wild. https://github.com/w3c/csswg-drafts/issues/6965#issuecomment-1118033655
<rdar://problem/92775435>
Created attachment 459060 [details] Patch
Created attachment 459061 [details] Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Created attachment 459062 [details] Patch
Created attachment 459063 [details] Patch
Comment on attachment 459063 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459063&action=review > Source/WebCore/html/HTMLDialogElement.cpp:169 > + Style::PseudoClassChangeInvalidation styleInvalidation(*this, CSSSelector::PseudoClassModal, newValue); > + m_isModal = newValue; Should this check if it has changed?
Created attachment 459065 [details] Patch
Committed r293987 (250424@main): <https://commits.webkit.org/250424@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459065 [details].