- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Sep 2023 09:11:59 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-extensions-1] Minor syntax problems == I think [`<extension-name>`](https://drafts.csswg.org/css-extensions-1/#typedef-extension-name) can be defined as a [`<dashed-ident>`](https://drafts.csswg.org/css-values-4/#typedef-dashed-ident): > An `<extension-name>` is any identifier that starts with two dashes (U+002D HYPHEN-MINUS), like `--foo`, or even exotic names like `--` or `------`. The following [productions](https://drafts.csswg.org/css-extensions-1/#at-ruledef-custom-selector) have trailing `;` that `w3c/webref` currently includes in their [value definitions](https://github.com/w3c/webref/blob/6f2d122b2a0c2e4ea098224020dd60f01694a0e2/ed/css/css-extensions.json): > ``` > @custom-selector = @custom-selector <custom-selector> <selector-list> ; > <custom-selector> = <custom-arg>? : <extension-name> [ ( <custom-arg>+#? ) ]? ; > <custom-arg> = $ <ident-token> ; > ``` `$` should be annotated between quotes, except if you plan to define it in CSS Values as one of the literal values that can appear without quotes. > Some property value definitions also include the slash (/), the comma (,), and/or parentheses as literals. These represent their corresponding tokens. Other non-keyword literal characters that may appear in a component value, such as “+”, must be written enclosed in single quotes. Similarly, `<custom-arg>+#?` should be `[<custom-arg>+#]?`, or `+#?` should be defined as a valid muliplier stack in CSS Values. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9290 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 1 September 2023 09:12:02 UTC