Skip to content

Commit 21c4e84

Browse files
committed
[css-variables] Fix how shorthands serialize, per jdaggett's comments.
--HG-- extra : rebase_source : ec7efc64d225a3167ee862372f82298db92724a8
1 parent a22dcf9 commit 21c4e84

2 files changed

Lines changed: 76 additions & 73 deletions

File tree

css-variables/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,12 @@ Variables in Shorthand Properties</h3>
591591
Similarly,
592592
while [[CSSOM]] defines that shorthand properties are serialized
593593
by appropriately concatenating the values of their corresponding longhands,
594-
shorthands containing ''var()'' functions must instead retain their original, ''var()''-containing, value.
595-
If serializing a shorthand's value would involve serializing a <a>pending-substitution value</a>,
596-
the shorthand must instead be serialized by serializing its original value.
594+
shorthands that are specified with explicit ''var()'' functions
595+
must serialize to the original, ''var()''-containing value.
596+
For other shorthands,
597+
if any of the longhand subproperties for that shorthand have <a>pending-substitution values</a>
598+
then the serialized value of the shorthand must be the empty string.
599+
597600

598601

599602
<!--

0 commit comments

Comments
 (0)