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

#13343 indicates that it might be confusing for authors if the serialization returns a different value as the one set. So, might it be possible to base the serialized value on the authored value somehow?

Still following the shortest serialization prinzicple, the definition could be to use the first authored longhand value and skip all the rest of the longhand values that match their initial value.
That would result in serializing `border: currentcolor` to `currentcolor`, `border: none` to `none`, and `border: medium none currentcolor` to `medium`.

Sebastian

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


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

Received on Wednesday, 14 January 2026 10:34:47 UTC