Skip to content

[css-values-4][cssom] <resolution> serializes to 'dppx', not 'x' #2241

@csnardi

Description

@csnardi

After #461, Values 4 states that:

All <resolution> units are compatible, and 'x' is their canonical unit.

However, the CSSOM spec for serializing <resolution> says:

The resolution in dots per CSS pixel serialized as per <number> followed by the literal string "dppx".

The Typed OM spec also makes no mention of 'x', only 'dppx'.

Should the canonical unit for <resolution> be changed back to 'dppx'? Changing all of these serializations to 'x' from 'dppx' might not be web-compatible, and would result in differences in serialization among browsers that have/have not added 'x' as a unit of resolution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions