Files
ladybird/Libraries/LibWeb/CSS/PseudoElements.json
Sam Atkins 193adee164 LibWeb/CSS: Implement aliases for pseudo-elements
We previously supported a few -webkit vendor-prefixed pseudo-elements.
This patch adds those back, along with -moz equivalents, by aliasing
them to standard ones. They behave identically, except for serializing
with their original name, just like for unrecognized -webkit
pseudo-elements.

It's likely to be a while before the forms spec settles and authors
start using the new pseudo-elements, so until then, we can still make
use of styles they've written for the non-standard ones.
2025-03-24 09:49:50 +00:00

74 lines
1.8 KiB
JSON

{
"-moz-meter-bar": {
"alias-for": "fill"
},
"-moz-progress-bar": {
"alias-for": "fill"
},
"-moz-range-progress": {
"alias-for": "fill"
},
"-moz-range-track": {
"alias-for": "track"
},
"-moz-range-thumb": {
"alias-for": "thumb"
},
"-webkit-meter-bar": {
"alias-for": "track"
},
"-webkit-progress-bar": {
"alias-for": "track"
},
"-webkit-progress-value": {
"alias-for": "fill"
},
"-webkit-slider-runnable-track": {
"alias-for": "track"
},
"-webkit-slider-thumb": {
"alias-for": "thumb"
},
"after": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-after",
"is-generated": true
},
"backdrop": {
"spec": "https://drafts.csswg.org/css-position-4/#selectordef-backdrop"
},
"before": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-before",
"is-generated": true
},
"details-content": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-details-content"
},
"file-selector-button": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-file-selector-button"
},
"fill": {
"spec": "https://drafts.csswg.org/css-forms-1/#selectordef-fill"
},
"first-letter": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-first-letter"
},
"first-line": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-first-line"
},
"marker": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-marker"
},
"placeholder": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-placeholder"
},
"selection": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-selection"
},
"thumb": {
"spec": "https://drafts.csswg.org/css-forms-1/#selectordef-thumb"
},
"track": {
"spec": "https://drafts.csswg.org/css-forms-1/#selectordef-track"
}
}