From 581d1a7f43141f46cf1ccbc7e2c028064c2a67c7 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 25 Jan 2024 16:09:56 +0100 Subject: [PATCH 1/2] [cssom-1] Export definition of "specified order" --- cssom-1/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index 369d80fe7a2..ce1979732f8 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -2027,7 +2027,7 @@ following properties:
Null. -The specified order for declarations is the same as specified, but with shorthand properties +The specified order for declarations is the same as specified, but with shorthand properties expanded into their longhand properties, in canonical order. If a property is specified more than once (after shorthand expansion), only the one with greatest cascading order must be represented, at the same relative position as it was specified. [[!CSS3CASCADE]] From 283eb2c33703f76334ff46100f04d127e761a430 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 25 Jan 2024 16:11:34 +0100 Subject: [PATCH 2/2] [css-syntax-3] Return declarations in specified order --- css-syntax-3/Overview.bs | 2 +- cssom-1/Overview.bs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css-syntax-3/Overview.bs b/css-syntax-3/Overview.bs index 61be4c87b23..a2762889173 100644 --- a/css-syntax-3/Overview.bs +++ b/css-syntax-3/Overview.bs @@ -2801,7 +2801,7 @@ Consume a block's contents
<>
<}-token>
- Return |decls| and |rules|. + Return |decls| in [=specified order=] and |rules|.
<>
diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index ce1979732f8..a0190e7a023 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -2393,7 +2393,7 @@ Setting the {{CSSStyleDeclaration/cssText}} attribute must run these steps: then throw a {{NoModificationAllowedError}} exception.
  • Empty the declarations.
  • Parse the given value and, if the return value is not the empty list, insert the items in the list - into the declarations, in specified order. + into the declarations.
  • Update style attribute for the CSS declaration block.