Skip to content

Commit

Permalink
[css-syntax-3] Return declarations in specified order
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoublev committed Jan 22, 2024
1 parent 93b77a6 commit 54255dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 <a>specified order</a> 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 @@ -2244,7 +2244,7 @@ To <dfn export>parse a CSS declaration block</dfn> from a string <var>string</va
are said to be ignored. If the whole declaration is dropped, let <var>parsed declaration</var> be null.
<li>If <var>parsed declaration</var> is not null, append it to <var>parsed declarations</var>.
</ol>
<li>Return <var>parsed declarations</var>.
<li>Return <var>parsed declarations</var> in <a>specified order</a>.
</ol>

To <dfn export>serialize a CSS declaration</dfn> with property name <var>property</var>, value <var>value</var> and optionally an <i>important</i> flag set, follow
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

0 comments on commit 54255dc

Please sign in to comment.