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

Re: [csswg-drafts] [cssom] Define serialization for background shorthand

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Sep 2017 17:00:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-332587722-1506531595-sysbot+gh@w3.org>
So, the css-backgrounds spec currently does not include the truncation/elongation of value lists as part of the process of computing values. So the computed value--the value that is used for inheritance--definitely is the length specified per spec.

As for the output of the CSSOM APIs, if we normalize the list lengths, then roundtripping a value gives different behavior than its initial declaration.

> Is serialization (of a shorthand) allowed to fail if parsing hasn't?

I don't know enough about CSSOM to answer this question.

So we have several options here:
- Change the computed values of list-valued properties to reflect the used list length
- Allow CSSOM to break roundtripping of list-valued properties with regards to the length of the list
- Allow CSSOM to fail to return a value for a shorthand

I don't know what's the best option. @dbaron ?

GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/418#issuecomment-332587722 using your GitHub account
Received on Wednesday, 27 September 2017 17:00:05 UTC

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