LibWeb/HTML: Invalidate :checked style on <input> type attribute change

The :checked (and :unchecked) psuedo classes depend on both the
checked state of input elements as well as what the type of that
input element is.
This commit is contained in:
Shannon Booth
2026-01-26 21:29:03 +01:00
committed by Andreas Kling
parent 2f40939aee
commit 354cca350a
Notes: github-actions[bot] 2026-02-06 11:02:37 +00:00
3 changed files with 20 additions and 3 deletions

View File

@@ -222,6 +222,7 @@ public:
bool multiple_applies() const;
bool required_applies() const;
bool checked_applies() const;
static bool checked_applies(TypeAttributeState);
bool has_selectable_text() const;
bool supports_a_picker() const;