W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2017

Re: [csswg-drafts] [css-values] Should math be allowed in bare min()/max()?

From: Tommy Hodgins via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Sep 2017 21:57:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-326692250-1504303024-sysbot+gh@w3.org>
> I'll go ahead and work on the spec this afternoon. ^_^

This is amazing 。◕‿◕。

Will it allow nesting `min()` and `max()` together like this?

```css
div {
  font-size: min(max(12px, 10vw), 100px);
}
```

Having this sort of functionality anywhere in CSS is going to make it _way_ easier for CSS authors to use scalable units “safely” 😘👌

-- 
GitHub Notification of comment by tomhodgins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1775#issuecomment-326692250 using your GitHub account
Received on Friday, 1 September 2017 21:57:08 UTC

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