Skip to content

Commit d79046a

Browse files
committed
[cssom] Don't serialize a shorthand if there are longhands with other property group / mapping logic in between the longhands of that shorthand.
Per #3030.
1 parent 763ee31 commit d79046a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cssom-1/Overview.bs

+3
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,9 @@ To <dfn export>serialize a CSS declaration block</dfn> <var>declaration block</v
20882088
<li>If there is one or more <a>CSS declarations</a> in <var>current longhands</var> have their
20892089
<a for="CSS declaration">important flag</a> set and one or more with it unset, continue with
20902090
the steps labeled <i>shorthand loop</i>.
2091+
<li>If there's any declaration in <var>declaration block</var> in between the first and the last longhand in <var>current longhands</var>
2092+
which belongs to the same [=logical property group=], but has a different [=mapping logic=] as any of the longhands in <var>current longhands</var>,
2093+
and is not in <var>current longhands</var>, continue with the steps labeled <i>shorthand loop</i>.
20912094
<li>Let <var>value</var> be the result of invoking <a>serialize a CSS value</a> of <var>current longhands</var>.
20922095
<li>If <var>value</var> is the empty string, continue with the steps labeled <i>shorthand loop</i>.
20932096
<li>Let <var>serialized declaration</var> be the result of invoking <a>serialize a CSS declaration</a> with property name

0 commit comments

Comments
 (0)