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

Re: [csswg-drafts] [css-values] Behavior of NaN in pow()/hypot() (#4161)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Tue, 30 Jul 2019 09:00:32 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-516331755-1564477230-sysbot+gh@w3.org>
IMO the infectious behavior makes sense if when replacing each NaN argument with a variable (over non-NaN numbers), the resulting function is not constant.

But here `hypot(+∞, x)` must be +∞ no matter what x is, and `pow(x, 0)` must be 1. So extending this for NaN doesn't seem unreasonable. Though `max(+∞, NaN) = NaN`, so it's not much consistent.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4161#issuecomment-516331755 using your GitHub account
Received on Tuesday, 30 July 2019 09:00:37 UTC

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