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: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Fri, 14 Oct 2016 00:32:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-253678371-1476405167-sysbot+gh@w3.org>
> @tabatkins ^^ I like what you are suggesting, what happens with the 
case of a viewport with of 400px, i.e. (400px - 400px) / 400 this 
would result in a divide by 0 error? Would we also need to clamp() the

Your example is dividing 0 with 400, i.e. not a divide by 0 error.
If it was dividing by 0, it would render the declaration invalid at 
computed value time, i.e. the same as if `initial` was specified. 
Perhaps we need a fallback mechanism (like in `var()`) if this is 

GitHub Notification of comment by LeaVerou
Please view or discuss this issue at 
using your GitHub account
Received on Friday, 14 October 2016 00:32:56 UTC

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