ladybird/Userland/Libraries/LibWeb/CSS/PseudoClasses.json
Sam Atkins 6bf107fc16 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. :^)
2023-09-13 19:55:22 +02:00

144 lines
2.0 KiB
JSON

{
"active": {
"argument": ""
},
"any-link": {
"argument": ""
},
"buffering": {
"argument": ""
},
"checked": {
"argument": ""
},
"closed": {
"argument": ""
},
"defined": {
"argument": ""
},
"dir": {
"argument": "<ident>"
},
"disabled": {
"argument": ""
},
"empty": {
"argument": ""
},
"enabled": {
"argument": ""
},
"first-child": {
"argument": ""
},
"first-of-type": {
"argument": ""
},
"focus": {
"argument": ""
},
"focus-visible": {
"argument": ""
},
"focus-within": {
"argument": ""
},
"host": {
"argument": "<compound-selector>?"
},
"hover": {
"argument": ""
},
"indeterminate": {
"argument": ""
},
"is": {
"argument": "<forgiving-selector-list>"
},
"lang": {
"argument": "<language-ranges>"
},
"last-child": {
"argument": ""
},
"last-of-type": {
"argument": ""
},
"link": {
"argument": ""
},
"local-link": {
"argument": ""
},
"muted": {
"argument": ""
},
"not": {
"argument": "<selector-list>"
},
"nth-child": {
"argument": "<an+b-of>"
},
"nth-last-child": {
"argument": "<an+b-of>"
},
"nth-last-of-type": {
"argument": "<an+b>"
},
"nth-of-type": {
"argument": "<an+b>"
},
"only-child": {
"argument": ""
},
"only-of-type": {
"argument": ""
},
"open": {
"argument": ""
},
"paused": {
"argument": ""
},
"placeholder-shown": {
"argument": ""
},
"playing": {
"argument": ""
},
"read-only": {
"argument": ""
},
"read-write": {
"argument": ""
},
"root": {
"argument": ""
},
"scope": {
"argument": ""
},
"seeking": {
"argument": ""
},
"stalled": {
"argument": ""
},
"target": {
"argument": ""
},
"target-within": {
"argument": ""
},
"visited": {
"argument": ""
},
"volume-locked": {
"argument": ""
},
"where": {
"argument": "<forgiving-selector-list>"
}
}