Files
ladybird/Libraries/LibWeb/CSS/PseudoElements.json
Sam Atkins 88e11eea2d LibWeb: Implement functional pseudo-element parsing
"Functional" as in "it's a function token" and not "it works", because
the behaviour for these is unimplemented. :^)

This is modeled after the pseudo-class parsing, but with some changes
based on things I don't like about that implementation. I've
implemented the `<pt-name-selector>` parameter used by view-transitions
for now, but nothing else.
2025-03-25 07:54:13 +00:00

139 lines
3.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",
"property-whitelist": [
"#font-properties",
"color",
"opacity",
"#background-properties",
"#inline-typesetting-properties",
"#text-decoration-properties",
"#inline-layout-properties",
"#margin-properties",
"#padding-properties",
"#border-properties",
"box-shadow"
]
},
"first-line": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-first-line",
"property-whitelist": [
"#font-properties",
"color",
"opacity",
"#background-properties",
"#inline-typesetting-properties",
"#text-decoration-properties",
"FIXME: ruby-position",
"#inline-layout-properties"
]
},
"marker": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-marker"
},
"placeholder": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-placeholder",
"property-whitelist": [
"#font-properties",
"color",
"opacity",
"#background-properties",
"#inline-typesetting-properties",
"#text-decoration-properties",
"FIXME: ruby-position"
]
},
"selection": {
"spec": "https://drafts.csswg.org/css-pseudo-4/#selectordef-selection",
"property-whitelist": [
"color",
"background-color",
"#text-decoration-properties",
"text-shadow",
"FIXME: stroke-color",
"FIXME: fill-color",
"stroke-width",
"#custom-properties"
]
},
"thumb": {
"spec": "https://drafts.csswg.org/css-forms-1/#selectordef-thumb"
},
"track": {
"spec": "https://drafts.csswg.org/css-forms-1/#selectordef-track"
},
"view-transition": {
"spec": "https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition"
},
"view-transition-group": {
"spec": "https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition-group",
"type": "function",
"function-syntax": "<pt-name-selector>"
},
"view-transition-image-pair": {
"spec": "https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition-image-pair",
"type": "function",
"function-syntax": "<pt-name-selector>"
},
"view-transition-new": {
"spec": "https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition-new",
"type": "function",
"function-syntax": "<pt-name-selector>"
},
"view-transition-old": {
"spec": "https://drafts.csswg.org/css-view-transitions-1/#selectordef-view-transition-old",
"type": "function",
"function-syntax": "<pt-name-selector>"
}
}