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

Re: [csswg-drafts] [css-values] Re-adding min() and max()?

From: Florens Verschelde via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jan 2017 10:03:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-272405970-1484301798-sysbot+gh@w3.org>
Small question as an author: what would be the proposed syntax for 
authors declaring lower and higher bounds? Nesting min and max?

```
/* font size is a mix of rem and viewport-based dimensions,
   with 1rem as lower bound and 5rem as upper bound */
h1 { font-size: min(1rem max(5rem calc(.5rem + 2vw + 2vh))); }
```

I looked up the `map()` issue to see if it allowed this in a slightly 
more readable way, but failed to understand the proposal.

-- 
GitHub Notification of comment by fvsch
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/544#issuecomment-272405970 
using your GitHub account
Received on Friday, 13 January 2017 10:03:25 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:37 UTC