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: Mike via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Oct 2016 17:42:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-252689504-1476121361-sysbot+gh@w3.org>
So like this?
```
--value = easing(green, red, blue, ease-in);
color: map(red, blue, var(--value));
```
And:
```
--value = easing(100vw, 600px, 800px, ease-in);
font-size: map(1rem, 2rem, var(--value));
```
That is also a valid option.

-- 
GitHub Notification of comment by MadeByMike
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/581#issuecomment-252689504 
using your GitHub account
Received on Monday, 10 October 2016 17:42:52 UTC

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