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: Fri, 23 Dec 2016 01:17:44 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-268925068-1482455863-sysbot+gh@w3.org>
In mathematics, though, `<` and `>` are usually only used as relation 
symbols and not as operators. Using them as paired brackets, i.e. 
_`>min<`_ and _`<max>`_, also kinda works for me.

``` CSS
{
    max(a b c)    calc(max(a b c))
    <a b c>       calc(<a b c>)
    a > b > c     calc(a > b > c)

    min(a b c)    calc(min(a b c))
    >a b c<       calc(>a b c<)
    a < b < c     calc(a < b < c)

    abs(a)        calc(abs(a))
    |a|           calc(|a|)

    round(a, b)   calc(round(a, b))
    [a]b          calc([a]b)
    [a]~b         calc([a]~b)
    a ~ b         calc(a ~ b)

    floor(a)      calc(floor(a))
    [a]_          calc([a]_)           ⌊a⌋
    (a _)         calc(a _)

    ceil(a)       calc(ceil(a))
    [a]`          calc([a]`)           ⌈a⌉
    [a]^          calc([a]^)           ⌈a⌉
    (a `)         calc(a `)
}
```

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/544#issuecomment-268925068 
using your GitHub account
Received on Friday, 23 December 2016 01:17:45 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:27 UTC