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

Re: [csswg-drafts] [css-values] Calc serialization of subtractions (#3335)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 03 Oct 2019 22:19:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-538151056-1570141157-sysbot+gh@w3.org>
c5cd052d2 adds serialization algos that are new-calc aware. In particular:

* negative values (both negative numeric values and Negate nodes coming from TypedOM) will serialize with a "-" in a sum).
* Sums and products are sorted as (num, percent, dimensions sorted by unit, everything else in original order), post simplification. (Since old-style calcs always simplify down to a sum, this shouldn't change behavior.)

Let me know if there are any problems.

GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3335#issuecomment-538151056 using your GitHub account
Received on Thursday, 3 October 2019 22:19:19 UTC

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