Re: [csswg-drafts] [cssom] Specify serialization principle for shorthands (#878)

I agree with @emilio's objection to the `initial` rule; I think we should stick to the rule for CSS-wide keywords that a shorthand cannot serialize if any of its subproperties have different CSS-wide-keyword state.  That is, a shorthand can serialize only if all of its subproperties are the same CSS-wide keyword (in which case it serializes to that keyword) or if none of its subproperties are a CSS-wide keyword.

I agree that a shorthand should serialize if its reset-only subproperties are their initial value (i.e., what they're reset to).

Much of this should be specified generally in CSSOM rather than specified as a principle for other specifications to follow.  I'm not sure that it is, though.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 September 2022 13:02:04 UTC