Re: [csswg-drafts] [css-values] Iverson bracket functions (#4731)

> the logical and comparative operators need to be added to calc expressions

Kind of, but they would return a boolean, which probably most math functions (like `calc()`) shouldn't accept as an argument. So "calc expressions" may not be the right term.

> `if()` is essentially a handy way of converting boolean-typed calc expressions into non-bools?
> Does `if(p)` then only accept bool for p?

Yes, that's what I was thinking.

> If bool is added, there are a lot of attributes

I wonder whether some string operations could be useful too, like checking if an attribute value starts, ends or contains a substring.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4731#issuecomment-582852036 using your GitHub account

Received on Thursday, 6 February 2020 11:03:53 UTC