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

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

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Jan 2017 17:03:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-272489981-1484327028-sysbot+gh@w3.org>
@fvsch I don't like that much nesting, but how about this (proposed 
syntax enhancement):

`h1 { font-size: calc(.5rem + 2vw + 2vh, min(1rem), max(5rem)); }`

Or this:

`h1 { font-size: calc(.5rem + 2vw + 2vh, minmax(1rem, 5rem)); }`

Or maybe even this:

`h1 { font-size: calc(.5rem + 2vw + 2vh, 1rem, 5rem); }`

If you didn't want a min, you could put a zero in that spot. If you 
didn't want a max, you could just leave it off, along with its 
preceding comma. 

GitHub Notification of comment by bradkemper
Please view or discuss this issue at 
using your GitHub account
Received on Friday, 13 January 2017 17:04:02 UTC

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