LibWeb: Invalidate style when HTMLDialogElement modal state changes

This fixes Layout/input/dialog-open-modal.html which began flaking
super hard after the preceding commits that reduced style invalidation
for focus-related pseudo class selectors.
This commit is contained in:
Andreas Kling 2025-04-17 15:40:48 +02:00 committed by Andreas Kling
parent 8d51c41a42
commit 832b0a0ace
Notes: github-actions[bot] 2025-04-17 17:46:52 +00:00
2 changed files with 11 additions and 2 deletions

View file

@ -37,6 +37,7 @@ public:
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::dialog; }
bool is_modal() const { return m_is_modal; }
void set_is_modal(bool);
private:
HTMLDialogElement(DOM::Document&, DOM::QualifiedName);