[csswg-drafts] [css-animation-1] Error handling for invalid `CSSKeyframesRule.name` (#7313)

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

== [css-animation-1] Error handling for invalid `CSSKeyframesRule.name` ==
There is no error handling for declaring an invalid [`CSSKeyframesRule.name`](https://drafts.csswg.org/css-animations-1/#dom-csskeyframesrule-name), defined as: 

> `attribute CSSOMString name`
>
> `name`, of type `CSSOMString`: This attribute is the name of the keyframes, used by the `animation-name` property.

I suggest to define the same behavior as for declaring an invalid `CSSKeyframeRule.keyText`: *If `name` is updated with an invalid `<keyframes-name>`, a `SyntaxError` exception must be thrown and the value of `name` must remain unchanged.*

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


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

Received on Thursday, 26 May 2022 06:38:06 UTC