[csswg-drafts] [css-values-4][cssom] Serialization of <position> (#8996)

nt1m has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-4][cssom] Serialization of <position> ==

https://drafts.csswg.org/css-values-4/#position-serialization says:

> If only one component is specified:
> The implied [center](https://drafts.csswg.org/css-backgrounds-3/#valdef-background-position-center) keyword is added, and a 2-component value is serialized.

but https://drafts.csswg.org/cssom/#serializing-css-values says:
> If component values can be omitted or replaced with a shorter representation without changing the meaning of the value, omit/replace them.

Which one is right? Personally I have a slight preference of omitting redundant values, unless there's a specific compat reason not to (which is mandated by the CSSOM spec), just for the sake of consistency with serialization of other types.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8996 using your GitHub account


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

Received on Wednesday, 21 June 2023 14:42:50 UTC