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

Re: [csswg-drafts] [css-values] Allow division of same types in calc()

From: L. David Baron via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Jun 2018 00:01:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-393719124-1527811304-sysbot+gh@w3.org>
So for clamping of infinities, a few things (though maybe not what I was thinking at the time):
* the allowed range doesn't seem to be defined
* since some `calc()`s are resolved at computed value time, I think some clamping needs to happen then, or else you need to figure out how to represent infinite computed values
* do the IEEE-754 semantics depend on the order of operations in places where the order of operations isn't defined by CSS?  (I'm not sure.)
* within what scope does an implementation need to track distinctions like +0 and -0?  A single `calc()` expression?  When `calc()` is nested inside of `calc()`, is that treated as just syntactic sugar for parentheses, or a separate expression that triggers clamping?  (I'd hope the former.)  Likewise for "If a math function would resolve to NaN, it instead resolves to positive infinity." which I would hope refers to the entire toplevel function, not pieces of it -- though that should be clear.
* is it defined how `min()` and `max()` handle NaNs?

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/545#issuecomment-393719124 using your GitHub account
Received on Friday, 1 June 2018 00:01:50 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 September 2019 01:18:58 UTC