LibWeb: Implement :modal pseudo class

Adds the :modal pseudo class which matches dialogs opened with
showModal().
This commit is contained in:
Luke Warlow 2024-07-02 00:36:36 +01:00 committed by Andreas Kling
commit 63a5ff70e5
Notes: sideshowbarker 2024-07-17 04:57:23 +09:00
8 changed files with 82 additions and 5 deletions

View file

@ -30,6 +30,8 @@ public:
// https://www.w3.org/TR/html-aria/#el-dialog
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::dialog; }
bool is_modal() const { return m_is_modal; }
private:
HTMLDialogElement(DOM::Document&, DOM::QualifiedName);