mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Implement :modal pseudo class
Adds the :modal pseudo class which matches dialogs opened with showModal().
This commit is contained in:
parent
34b9873664
commit
63a5ff70e5
Notes:
sideshowbarker
2024-07-17 04:57:23 +09:00
Author: https://github.com/lukewarlow
Commit: 63a5ff70e5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/345
Reviewed-by: https://github.com/AtkinsSJ
8 changed files with 82 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue