[csswg-drafts] [css-values] Serialization of a summation needs to account for negatives (#4129)

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

== [css-values] Serialization of a summation needs to account for negatives ==
https://drafts.csswg.org/css-values-4/#calc-serialize says:

> Serialize all the terms, then join them into a single string, with " + " between each term. Return the result.

Instead it should be smarter, all browsers serialize `calc(10em - 10px)` as `calc(10em - 10px)`, not as `calc(10em + -10px)`, which is what the spec would require.

cc @tabatkins 

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

Received on Friday, 19 July 2019 01:10:54 UTC