Skip to content

Commit 76ada55

Browse files
emiliofantasai
authored andcommitted
[cssom] Minor tweak.
Once you've serialized one shorthand that contains `property`, you can skip to the declaration loop, as the rest of the iterations of `shorthand loop` are useless.
1 parent b50d58b commit 76ada55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cssom-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,8 +2095,8 @@ To <dfn export>serialize a CSS declaration block</dfn> <var>declaration block</v
20952095
<var>current longhands</var> have their <a for="CSS declaration">important flag</a> set.
20962096
<li>Append <var>serialized declaration</var> to <var>list</var>.
20972097
<li>Append the property names of all items of <var>current longhands</var> to <var>already serialized</var>.
2098+
<li>Continue with the steps labeled <i>declaration loop</i>.
20982099
</ol>
2099-
<li>If <var>property</var> is in <var>already serialized</var>, continue with the steps labeled <i>declaration loop</i>.
21002100
<li>Let <var>value</var> be the result of invoking <a>serialize a CSS value</a> of <var>declaration</var>.
21012101
<li>Let <var>serialized declaration</var> be the result of invoking <a>serialize a CSS declaration</a> with property name <var>property</var>, value
21022102
<var>value</var>, and the <i>important</i> flag set if <var>declaration</var> has its <a for="CSS declaration">important

0 commit comments

Comments
 (0)