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

Re: [csswg-drafts] [css-values-4] Specify that calculation trees explicitly work in double precision (#4551)

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Dec 2019 09:23:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-560308362-1575278620-sysbot+gh@w3.org>
I don't understand why making `calc()` special here. If I understand correctly, [Blink](https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/geometry/length.h) and [WebKit](https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/Length.h) store every other non-calc() length as float.

I actually see no occurrence of `double` in [WebKit's `CalculationValue.cpp`](https://trac.webkit.org/browser/webkit/trunk/Source/WebCore/platform/CalculationValue.cpp), @smfr what am I missing?

I think the difference here is that the WebKit CSS parser does operate on `double` and they then truncate to float rather than Gecko's, which uses `float` everywhere... But maybe I am missing something here.

GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4551#issuecomment-560308362 using your GitHub account
Received on Monday, 2 December 2019 09:23:43 UTC

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