[cssom-view][cssom] how should CSS variables should be serialized

Hey everyone,

We got some confusion on our new data site[1] regarding the padding shorthand due to how the var() values are stored in the CSSOM as people were surprised to its low usage, while the more common non custom props padding were stored in their representative long hands. Due to this we looked into the spec and the CSSOM does not define this, however the CSS Variables specification does define[2] how they should be serialized into the CSSOM. It would be useful to update the CSSOM spec, either with a note stating this or clarify it in some way as we initially referred to the OM spec and felt it was unclear/unspecified until reviewing the custom props spec.

Thanks,
Greg

[1] https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/padding/
[2] https://drafts.csswg.org/css-variables/#variables-in-shorthands

Received on Thursday, 7 April 2016 18:46:24 UTC