[csswg-drafts] Pull Request: [css-syntax-3][cssom-1] Return declarations in specified order

cdoublev has just labeled a pull request from cdoublev for https://github.com/w3c/csswg-drafts as "cssom-1":

== [css-syntax-3][cssom-1] Return declarations in specified order ==
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 Monday, 22 January 2024 13:57:13 UTC