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

Re: [csswg-drafts] [css-values-4] Round to integer only at end of computation or conversion (#3444)

From: Gérard Talbot via GitHub <sysbot+gh@w3.org>
Date: Mon, 17 Dec 2018 00:43:05 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-447691922-1545007384-sysbot+gh@w3.org>
Okay, I see. It's a tricky subtest. 
I am closing this issue.

> It would probably be good to have an example for this.

There are 2 sub-tests in @emilio test where a &lt;number&gt; is rounded to the nearest integer.


    specified: "calc(1 / 2)",
    computed: "1",
    description: "Rounds up if fractional part is >= 0.5",
 
and

    specified: "calc(1 / 3)",
    computed: "0",
    description: "Rounds down if fractional part is < 0.5",


-- 
GitHub Notification of comment by TalbotG
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3444#issuecomment-447691922 using your GitHub account
Received on Monday, 17 December 2018 00:43:11 UTC

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