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

@katerlouis In this example the formula is simplified. Expanded it 
would be: `calc( (100vw - 400px) / (800px - 400px ) )` If you are 
interested how it works I wrote about it in detail here: 
https://madebymike.com.au/writing/precise-control-responsive-typography/

@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 `clap()` 
the 100vw?

:| If so we're getting back to a point where this is probably not 
simplifying things for authors as much as we might like.

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

Received on Tuesday, 11 October 2016 11:12:49 UTC