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

Re: [csswg-drafts] [css-values] Add round()/floor()/ceil() functions (#2513)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Dec 2019 20:40:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-565601014-1576269623-sysbot+gh@w3.org>
Ah, allowing a default precision for plain numbers, but requiring an explicit one for dimensions, works for me.

And yes, I definitely think that authors would expect `round(2.4cm)` to produce `2cm`, which we can't guarantee; we need to require the author the author to say `round(2.4cm, 1cm)`.

@Crissov Ooh, good catch on remembering about the Rhythm keywords.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2513#issuecomment-565601014 using your GitHub account
Received on Friday, 13 December 2019 20:40:25 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:18 UTC