LibWeb: Remove :closed pseudo class

This was removed from the spec.
This commit is contained in:
Luke Warlow 2024-12-05 23:13:17 +00:00 committed by Tim Ledbetter
parent c937aff95a
commit 7c9a162f99
Notes: github-actions[bot] 2024-12-06 04:50:27 +00:00
4 changed files with 1 additions and 11 deletions

View file

@ -11,9 +11,6 @@
"checked": {
"argument": ""
},
"closed": {
"argument": ""
},
"defined": {
"argument": ""
},

View file

@ -728,7 +728,6 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
return false;
}
case CSS::PseudoClass::Open:
case CSS::PseudoClass::Closed:
return matches_open_state_pseudo_class(element, pseudo_class.type == CSS::PseudoClass::Open);
case CSS::PseudoClass::Modal: {
// https://drafts.csswg.org/selectors/#modal-state

View file

@ -3,15 +3,12 @@
.open {
color: green;
}
.closed {
color: red;
}
</style>
<details open class="open">
<summary>Hi</summary>
Well hello friends!
</details>
<details class="closed">
<details>
<summary>Hi</summary>
Well hello friends!
</details>

View file

@ -4,9 +4,6 @@
:open {
color: green;
}
:closed {
color: red;
}
</style>
<details open>
<summary>Hi</summary>