LibWeb: Always parse <counter-style> as such

Previously we parsed it as `<custom-ident>` in `<counter>` and as a
keyword in `list-style-type`.

The practical effect of this is:
 - Spec defined counter style names in `<counter>` are ASCII lowercased
   on parse.
 - Non spec defined counter style names are allowed in `list-style-type.

We are still to parse the `symbols()` function but this gives us a
better base for that.
This commit is contained in:
Callum Law
2026-02-04 12:24:04 +13:00
committed by Sam Atkins
parent 05cafdb5d0
commit 8a82d116d6
Notes: github-actions[bot] 2026-02-12 10:34:28 +00:00
22 changed files with 197 additions and 103 deletions

View File

@@ -2518,7 +2518,7 @@
"inherited": true,
"initial": "disc",
"valid-types": [
"counter-style-name-keyword",
"counter-style",
"string"
],
"valid-identifiers": [