W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Jul 2019 01:10:53 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-470086725-1563498651-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC