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

> @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
 100vw?

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 
common.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/581#issuecomment-253678371 
using your GitHub account

Received on Friday, 14 October 2016 00:32:56 UTC