diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index 9cd3712f744..78d7bfc4f91 100644
--- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -169,7 +169,11 @@ void HTMLInputElement::set_checked(bool checked)
m_checked = checked;
- invalidate_style(DOM::StyleInvalidationReason::HTMLInputElementSetChecked);
+ invalidate_style(
+ DOM::StyleInvalidationReason::HTMLInputElementSetChecked,
+ { { .type = CSS::InvalidationSet::Property::Type::PseudoClass, .value = CSS::PseudoClass::Checked } },
+ {});
+
if (auto* paintable = this->paintable())
paintable->set_needs_display();
}