LibWeb/CSS: Add custom-ident blacklists to Properties.json

These excluded values use a similar notation to the ranges for numeric
types: `![foo,bar,baz]` to exclude `foo`, `bar`, and `baz`.
This commit is contained in:
Sam Atkins
2025-02-24 14:59:03 +00:00
parent c6c607884b
commit c729c3fcee
Notes: github-actions[bot] 2025-02-26 11:24:14 +00:00
3 changed files with 64 additions and 7 deletions

View File

@@ -72,6 +72,7 @@ The `valid-types` array lists the names of CSS value types, as defined in the la
[CSS Values and Units spec](https://www.w3.org/TR/css-values/), without the `<>` around them.
For numeric types, we use the [bracketed range notation](https://www.w3.org/TR/css-values-4/#css-bracketed-range-notation),
for example `width` can take any non-negative length, so it has `"length [0,∞]"` in its `valid-types` array.
For `<custom-ident>`s, the excluded identifiers are placed within `![]`, for example `"custom-ident ![all,none]"`.
## Keywords.json