[csswg-drafts] [css-animations-1] Undefined procedures to get/set CSSOM attributes (#9364)

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

== [css-animations-1] Undefined procedures to get/set CSSOM attributes ==
The procedures to get/set `CSSKeyframesRule.name` and `CSSKeyframeRule.keyText` are loosely worded:

  > ```
  > interface CSSKeyframesRule : CSSRule {
  >   attribute CSSOMString name;
  >   // ...
  > };
  > ```
  >
  > **`name`, of type `CSSOMString`**
  >
  > This attribute is the name of the keyframes, used by the `animation-name` property.

https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule-idl

  > ```
  > interface CSSKeyframeRule : CSSRule {
  >   attribute CSSOMString keyText;
  >   // ...
  > };
  > ```
  >
  > **`keyText`, of type `CSSOMString`**
  >
  > This attribute represents the keyframe selector as a comma-separated list of percentage values. The `from` and `to` keywords map to `0%` and `100%`, respectively.
  >
  > If `keyText` is updated with an invalid keyframe selector, a `SyntaxError` exception must be thrown and the value of `keyText` must remain unchanged.

https://drafts.csswg.org/css-animations-1/#interface-csskeyframerule-idl

I suggest:

  > On getting, the `name` attribute must return the result of [serializing](https://drafts.csswg.org/cssom-1/#serialize-a-css-value) its value.
  >
  > 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 `<keyframes-name>`.

  > On getting, the `keyText` attribute must return the result of [serializing](https://drafts.csswg.org/cssom-1/#serialize-a-css-value) its value.
  >
  > On setting, the `keyText` 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 `<keyframe-selector>#`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9364 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:52 UTC