mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00: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: 7c9a162f99
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": {
|
"checked": {
|
||||||
"argument": ""
|
"argument": ""
|
||||||
},
|
},
|
||||||
"closed": {
|
|
||||||
"argument": ""
|
|
||||||
},
|
|
||||||
"defined": {
|
"defined": {
|
||||||
"argument": ""
|
"argument": ""
|
||||||
},
|
},
|
||||||
|
|
|
@ -728,7 +728,6 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
case CSS::PseudoClass::Open:
|
case CSS::PseudoClass::Open:
|
||||||
case CSS::PseudoClass::Closed:
|
|
||||||
return matches_open_state_pseudo_class(element, pseudo_class.type == CSS::PseudoClass::Open);
|
return matches_open_state_pseudo_class(element, pseudo_class.type == CSS::PseudoClass::Open);
|
||||||
case CSS::PseudoClass::Modal: {
|
case CSS::PseudoClass::Modal: {
|
||||||
// https://drafts.csswg.org/selectors/#modal-state
|
// https://drafts.csswg.org/selectors/#modal-state
|
||||||
|
|
|
@ -3,15 +3,12 @@
|
||||||
.open {
|
.open {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
.closed {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<details open class="open">
|
<details open class="open">
|
||||||
<summary>Hi</summary>
|
<summary>Hi</summary>
|
||||||
Well hello friends!
|
Well hello friends!
|
||||||
</details>
|
</details>
|
||||||
<details class="closed">
|
<details>
|
||||||
<summary>Hi</summary>
|
<summary>Hi</summary>
|
||||||
Well hello friends!
|
Well hello friends!
|
||||||
</details>
|
</details>
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
:open {
|
:open {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
:closed {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<details open>
|
<details open>
|
||||||
<summary>Hi</summary>
|
<summary>Hi</summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue