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

> > So, might it be possible to base the serialized value on the authored value somehow?
> 
> You mean for shorthands in particular? In general I'd rather not, since it'd be on a case-by-case basis (on some properties the syntax might not allow the reordering or what not)

I mainly had shorthand serialization in mind, yes. Though I don't see why it couldn't apply to longhands, as well. The idea is to properly extend the algorithm to make it precise enough on when the rule [outlined earlier](https://github.com/w3c/csswg-drafts/issues/8155#issuecomment-3748877165) is applied.
Or in other words, the algorithm should provide a basic definition for how to serialize those cases. Other specifications may still provide different serialization rules if needed.

> ... and serialization is already under-specified enough :)

Well, that's the reason for issues like this one and #13343.😉 The main goal here is to improve the specification of the serialization and reduce ambiguities.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8155#issuecomment-3749494636 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 13:09:03 UTC