mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:57:44 +00:00
LibWeb: Implement the :open and :closed pseudo-classes
These apply to any elements that have some kind of open/closed state. The spec suggests `<details>`, `<dialog>`, and `<select>`, so that's what I've supported here. Only `<details>` is fleshed out right now, but once the others are, these pseudo-classes should work automatically. :^)
This commit is contained in:
parent
29bb0f0ae6
commit
6bf107fc16
4 changed files with 64 additions and 0 deletions
|
@ -11,6 +11,9 @@
|
|||
"checked": {
|
||||
"argument": ""
|
||||
},
|
||||
"closed": {
|
||||
"argument": ""
|
||||
},
|
||||
"defined": {
|
||||
"argument": ""
|
||||
},
|
||||
|
@ -92,6 +95,9 @@
|
|||
"only-of-type": {
|
||||
"argument": ""
|
||||
},
|
||||
"open": {
|
||||
"argument": ""
|
||||
},
|
||||
"paused": {
|
||||
"argument": ""
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue