[csswg-drafts] Pull Request: [cssom-1] Return declarations in specified order from parse a CSS dec…

cdoublev has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [cssom-1] Return declarations in specified order from parse a CSS dec… ==
The attribute change steps for `Element.style`, and the procedure for creating a new `CSSStyleDeclaration`, are receiving declarations from *parse a CSS declaration block*, in undefined order.

https://drafts.csswg.org/cssom-1/#css-declaration-blocks

  > A CSS declaration block has these attribute change steps [...]:
  >
  > [...]
  >
  > 5. Otherwise, let the declarations be the result of parse a CSS declaration block from a string `value`.

  > When a CSS declaration block object is created, then:
  >
  > [...]
  >
  > If `value` is not `null`, let the declarations be the result of parse a CSS declaration block from a string `value`.

Declarations should be in specified order, which I propose to apply in *parse a CSS declaration block*.

See https://github.com/w3c/csswg-drafts/pull/9821


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

Received on Friday, 19 January 2024 13:06:10 UTC