W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

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

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Sun, 05 Mar 2017 23:29:54 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-284272747-1488756592-sysbot+gh@w3.org>
In CSSOM spec, the [serialize a CSS 
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 
 using your GitHub account
Received on Sunday, 5 March 2017 23:30:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC