1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

LibWeb: Generate PseudoClass metadata

The usual to/from-string functions, and metadata about whether the
pseudo-class is a a function or not, and what type of parameter it
takes.
This commit is contained in:
Sam Atkins 2023-08-12 13:27:24 +01:00 committed by Andreas Kling
parent e25b1f76e1
commit f76c614a84
6 changed files with 350 additions and 0 deletions

View file

@ -0,0 +1,116 @@
{
"active": {
"argument": ""
},
"buffering": {
"argument": ""
},
"checked": {
"argument": ""
},
"defined": {
"argument": ""
},
"disabled": {
"argument": ""
},
"empty": {
"argument": ""
},
"enabled": {
"argument": ""
},
"first-child": {
"argument": ""
},
"first-of-type": {
"argument": ""
},
"focus": {
"argument": ""
},
"focus-visible": {
"argument": ""
},
"focus-within": {
"argument": ""
},
"host": {
"argument": "<selector-list>?"
},
"hover": {
"argument": ""
},
"indeterminate": {
"argument": ""
},
"is": {
"argument": "<forgiving-selector-list>"
},
"lang": {
"argument": "<language-ranges>"
},
"last-child": {
"argument": ""
},
"last-of-type": {
"argument": ""
},
"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": ""
},
"paused": {
"argument": ""
},
"playing": {
"argument": ""
},
"root": {
"argument": ""
},
"scope": {
"argument": ""
},
"seeking": {
"argument": ""
},
"stalled": {
"argument": ""
},
"target": {
"argument": ""
},
"visited": {
"argument": ""
},
"volume-locked": {
"argument": ""
},
"where": {
"argument": "<forgiving-selector-list>"
}
}