[csswg-drafts] [css-counter-styles-3] Setting `CSSCounterStyleRule.name` should exclude invalid `<custom-ident>` (#9363)

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

== [css-counter-styles-3] Setting `CSSCounterStyleRule.name` should exclude invalid `<custom-ident>` ==
The [procedure](https://drafts.csswg.org/css-counter-styles-3/#dom-csscounterstylerule-name) to set `CSSCounterStyleRule.name` does not exclude invalid `<custom-ident>`:

  > On setting the `name` attribute, run the following steps:
  >
  > 1. If the value is an ASCII case-insensitive match for "none" or one of the non-overridable counter-style names, do nothing and return.
  > 2. If the value is an ASCII case-insensitive match for any of the predefined counter styles, lowercase it.
  > 3. Replace the associated rule’s name with an identifier equal to the value.

I suggest:

  > On setting, the `name` attribute must return the result of [parsing](https://drafts.csswg.org/css-syntax-3/#css-parse-something-according-to-a-css-grammar) the given value against `<counter-style-name>`.

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


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

Received on Friday, 15 September 2023 13:43:46 UTC