mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb: Remove :closed pseudo class
This was removed from the spec.
This commit is contained in:
parent
c937aff95a
commit
7c9a162f99
Notes:
github-actions[bot]
2024-12-06 04:50:27 +00:00
Author: https://github.com/lukewarlow Commit: https://github.com/LadybirdBrowser/ladybird/commit/7c9a162f994 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2801 Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 1 additions and 11 deletions
|
@ -11,9 +11,6 @@
|
|||
"checked": {
|
||||
"argument": ""
|
||||
},
|
||||
"closed": {
|
||||
"argument": ""
|
||||
},
|
||||
"defined": {
|
||||
"argument": ""
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
:open {
|
||||
color: green;
|
||||
}
|
||||
:closed {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<details open>
|
||||
<summary>Hi</summary>
|
||||
|
|
Loading…
Reference in a new issue