Re: [csswg-drafts] [css-fonts-3] [css-fonts-4] getComputedStyle() and CSSStyleDeclaration of expanded shorthand

In CSSOM spec, the [serialize a CSS 
value](https://drafts.csswg.org/cssom/#serialize-a-css-value) 
algorithm in step 1.2 says:
> If shorthand cannot represent the values of list in its grammar, 
return the empty string and terminate these steps.

In general, any shorthand accepts a list of things is more likely to 
fail to express its longhands, e.g. `animation: a 1s, b 2s; 
animation-name: a;` cannot be expressed in `animation` shorthand.

(There is a bug in WebKit for this case, though, that it serializes 
this as `animation: a 1s, 2s` and parses the serialized shorthand to 
`animation-name: a, initial` which is an invalid declaration.)

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1076#issuecomment-284272747
 using your GitHub account

Received on Sunday, 5 March 2017 23:30:01 UTC