Files
ladybird/Libraries/LibWeb/CSS/PseudoElements.json
Sam Atkins 1108988656 LibWeb/CSS: Generate property-filtering code for pseudo-elements
Pseudo-elements have specific rules about which CSS properties can be
applied to them. This is a first step to supporting that.

- If a property whitelist isn't present, all properties are allowed.
- Properties are named as in CSS.
- Names of property groups are prefixed with `#`, which makes this match
  the spec more clearly. These groups are implemented directly in the
  code generator for now.
- Any property name beginning with "FIXME:" is ignored, so we can mark
  properties we don't implement yet.
2025-03-24 09:49:50 +00:00

116 lines
2.9 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"
}
}