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: René Eschke via GitHub <sysbot+gh@w3.org>
Date: Tue, 11 Oct 2016 11:00:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-252882106-1476183606-sysbot+gh@w3.org>
Sorry if this may be trivial; but where in this formula is the 800px 
limitation? Wouldn't you need a media query surrounding that 
calc-function to ensure that it doesn't get applied to `vw`s greater 
than 800? 

The way I see it the formula alone won't handle it:
`((1200px - 400px) / 400) = 2` .. `18 + 6*2 = 30`, not the desired max
 of `24`.

Please, enlighten me :)

-- 
GitHub Notification of comment by katerlouis
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/581#issuecomment-252882106 
using your GitHub account
Received on Tuesday, 11 October 2016 11:00:20 UTC

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