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

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