W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-shapes] Serialization of computed value of <position> in circle() and ellipse() function (#402)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Mar 2020 22:32:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-595993044-1583533961-sysbot+gh@w3.org>
I don't think anything should serialize as `calc(0px + 0%)` unless it was specified as a calc() with % and length in it to begin with. It violates both shortest-serialization principle of generic serialization rules, and the "don't change shape" principle of calc() serialization which preserves 0s *if they were specified*.

This applies to both background-position and shape functions.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/402#issuecomment-595993044 using your GitHub account
Received on Friday, 6 March 2020 22:32:43 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC