Skip to content

[cssom] In what order should properties be serialized? #2509

Closed
@csnardi

Description

@csnardi

https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block defines that shorthands should be considered in preferred order. However, it says no such thing for general longhands/properties, or how shorthands should be ordered with longhands.

This can lead to interoperability concerns, for example in https://wpt.fyi/css/css-variables/variable-cssText.html with the test of target9 where Firefox/Chrome order margin-right first but Edge orders margin-top first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions