Re: [csswg-drafts] [cssom] Shortest serialization principle with multiple minimal possibilities (#8155)

I propose as a general principle whenever it's a question of "which value do we need to provide, since they're *all* default", we choose the first one in grammar order. This matches with the existing principle that you serialize in grammar order. We can probably explicitly define this in reference to the grammar's top level being a || combinator (or a repetition of such), and say that anything still ambiguous is a spec bug that needs to be clarified.

This happens to match Firefox's behavior for 'list-style' and 'text-decoration'. Not sure why they serialize 'border' with the default thickness keyword *and* the default style keyword. Just to be less confusing, maybe? My proposal would have it serialize as just `"medium"`.

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


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

Received on Wednesday, 30 November 2022 16:55:29 UTC