W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

Re: [csswg-drafts] [css-values] [css-fonts-4] Native map() function in CSS

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Oct 2016 21:50:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-255474040-1477086657-sysbot+gh@w3.org>
Nah, fallback in divide-by-zero doesn't work well; it means we're 
dealing with an open range, which CSS correctly avoids in designing 
things. Switching to a fallback means that whatever the behavior was 
as it got *really close* to zero, it'll suddenly ignore and switch to 
your fallback, which isn't guaranteed to do the same thing.

Handling divide-by-zero properly means letting calc() handle 
infinities (via standard float rules), and defining what happens when 
they escape the calc() (probably just "largest value the 
implementation can support for that property").

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/581#issuecomment-255474040 
using your GitHub account
Received on Friday, 21 October 2016 21:51:07 UTC

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