Skip to content

Commit

Permalink
[cssom-1] Return declarations in specified order from parse a CSS dec…
Browse files Browse the repository at this point in the history
…laration block
  • Loading branch information
cdoublev committed Jan 19, 2024
1 parent 93b77a6 commit e68d1f6
Showing 1 changed file with 2 additions and 2 deletions.
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 e68d1f6

Please sign in to comment.