[css-houdini-drafts] [css-properties-values-api-1] Define `syntax` with `<string> | <syntax>` (#1132)

cdoublev has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-properties-values-api-1] Define `syntax` with `<string> | <syntax>` ==
The [`syntax` descriptor](https://drafts.css-houdini.org/css-properties-values-api-1/#the-syntax-descriptor) could now be defined with a "naked" value matching [`<syntax>`](https://drafts.csswg.org/css-values-5/#css-syntax).

When declared as a `<string>`, its value would be [parsed](https://drafts.csswg.org/css-syntax-3/#css-parse-something-according-to-a-css-grammar) against `<syntax>` instead of calling [consume a syntax definition](https://drafts.css-houdini.org/css-properties-values-api-1/#consume-a-syntax-definition), which could be removed.

Note that the `<syntax>` value range is slightly wider than what this algo allows, since it matches syntax component names case-sensitively. I think that is the only difference.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1132 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 25 October 2024 12:47:48 UTC