Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-syntax-3][cssom-1] Return declarations in specified order #9821

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css-syntax-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2801,7 +2801,7 @@ Consume a block's contents</h4>
<dt><<EOF-token>>
<dt><a href="#tokendef-close-curly">&lt;}-token></a>
<dd>
Return |decls| and |rules|.
Return |decls| in [=specified order=] and |rules|.

<dt><<at-keyword-token>>
<dd>
Expand Down
4 changes: 2 additions & 2 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ following properties:
<dd>Null.
</dl>

The <dfn id=concept-declarations-specified-order>specified order</dfn> for declarations is the same as specified, but with shorthand properties
The <dfn export id=concept-declarations-specified-order>specified order</dfn> 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]]

Expand Down Expand Up @@ -2393,7 +2393,7 @@ Setting the {{CSSStyleDeclaration/cssText}} attribute must run these steps:
then <a>throw</a> a {{NoModificationAllowedError}} exception.
<li>Empty the <a for="CSSStyleDeclaration">declarations</a>.
<li><a lt="Parse a CSS declaration block">Parse</a> the given value and, if the return value is not the empty list, insert the items in the list
into the <a for="CSSStyleDeclaration">declarations</a>, in <a>specified order</a>.
into the <a for="CSSStyleDeclaration">declarations</a>.
<li><a>Update style attribute for</a> the <a>CSS declaration block</a>.
</ol>

Expand Down