W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

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

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Dec 2016 12:58:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-268516922-1482325103-sysbot+gh@w3.org>
I wonder whether `min()` and `max()` would be the best notation, 
however, especially if these operations were only available within 
`calc()`. I know it’s unusual and incompatible with programming 
languages (which need logic operators and, unlike CSS, have a boolean 
data type), but maybe `<` and `>` could be used as operators instead.

``` CSS
width: min(100px 10em 10vw);
width: min(100px, 10em, 10vw);
width: calc(min(100px 10em 10vw));
width: calc(min(100px, 10em, 10vw));
width: calc(100px < 10em < 10vw);

height: max(100px 10em 10vw);
height: max(100px, 10em, 10vw);
height: calc(max(100px 10em 10vw));
height: calc(max(100px, 10em, 10vw));
height: calc(100px > 10em > 10vw);

GitHub Notification of comment by Crissov
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 21 December 2016 12:58:30 UTC

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