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

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