Re: [csswg-drafts] [css-cascade] About omitted subproperty value in shorthand

That way, a lot more questions would be open, e.g. what about 
`background: url(a) 100%, url(b); background-size: initial;`? Should 
it be serialized to `background: url(a), url(b);`? Does the latter 
produce `background-size: initial, initial` or `background-size: 
initial`? Would `background-size: initial` be identical to e.g. 
`background-size: initial, initial, initial`?

Also, if we allow `initial` as part of a value but not all, should we 
also allow other CSS-wide keywords to be treated the same way? (WebKit
 still has an issue that `inherit` can accidentally appear in 
serialization of shorthands, which seems to have been fixed in Blink.)
 And would that only apply to lists or any property which can accept 
multiple tokens? What about tokens inside functions?

I didn't say it is not feasible to do that... I just wonder whether 
it's worth the effort to fix that in the hard way.

IIRC, @tabatkins mentioned that he was considering making it possible 
to cascade individual entry in a list separately, which may change the
 landscape of how this kind of things should behave.

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

Received on Monday, 6 March 2017 00:29:48 UTC