ladybird/Libraries/LibWeb/CSS/PseudoClasses.json
Sam Atkins d5b9c39a98 LibWeb: Replace webkit meter-state pseudo-elements with pseudo-classes
This also implements the `:high-value` and `:low-value` that are in the
spec.

Same note as before about this being based on the very-drafty CSS Forms
spec. In fact, some of this isn't even in that spec yet. Specifically,
the `:suboptimal-value` and `:even-less-good-value` names are undecided
and subject to change. However, it's clear that this is a pseudo-class
situation, not a pseudo-element one, so I think this is still an
improvement, as it allows styling of the `::fill` pseudo-element
regardless of what state it is in.

Relevant spec issue: https://github.com/openui/open-ui/issues/1130
2025-03-19 10:10:03 +00:00

176 lines
2.5 KiB
JSON

{
"active": {
"argument": ""
},
"any-link": {
"argument": ""
},
"buffering": {
"argument": ""
},
"checked": {
"argument": ""
},
"defined": {
"argument": ""
},
"dir": {
"argument": "<ident>"
},
"disabled": {
"argument": ""
},
"empty": {
"argument": ""
},
"enabled": {
"argument": ""
},
"even-less-good-value": {
"argument": ""
},
"first-child": {
"argument": ""
},
"first-of-type": {
"argument": ""
},
"focus": {
"argument": ""
},
"focus-visible": {
"argument": ""
},
"focus-within": {
"argument": ""
},
"has": {
"argument": "<relative-selector-list>"
},
"high-value": {
"argument": ""
},
"host": {
"argument": "<compound-selector>?"
},
"hover": {
"argument": ""
},
"indeterminate": {
"argument": ""
},
"invalid": {
"argument": ""
},
"is": {
"argument": "<forgiving-selector-list>"
},
"lang": {
"argument": "<language-ranges>"
},
"last-child": {
"argument": ""
},
"last-of-type": {
"argument": ""
},
"link": {
"argument": ""
},
"local-link": {
"argument": ""
},
"low-value": {
"argument": ""
},
"modal": {
"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": ""
},
"optimal-value": {
"argument": ""
},
"popover-open": {
"argument": ""
},
"paused": {
"argument": ""
},
"placeholder-shown": {
"argument": ""
},
"playing": {
"argument": ""
},
"read-only": {
"argument": ""
},
"read-write": {
"argument": ""
},
"root": {
"argument": ""
},
"scope": {
"argument": ""
},
"seeking": {
"argument": ""
},
"stalled": {
"argument": ""
},
"suboptimal-value": {
"argument": ""
},
"target": {
"argument": ""
},
"target-within": {
"argument": ""
},
"user-invalid": {
"argument": ""
},
"user-valid": {
"argument": ""
},
"valid": {
"argument": ""
},
"visited": {
"argument": ""
},
"volume-locked": {
"argument": ""
},
"where": {
"argument": "<forgiving-selector-list>"
}
}