Re: [csswg-drafts] [css-values-5] if() conditions with calc() comparisons (#11104)

Currently all the conditions in `if()` are functions; I propose we use the "just parentheses" syntax for this. Namely:

```
( <calc-sum> <mf-comparison> <calc-sum> )
```

This way you can write, say, `flex-flow: if( (100vw > 200px): row ; else : column; );` 

(or, spread over multiple lines:

```
flex-flow: if(
    (100vw > 200px): row;
    else: column;
);
```
)

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 28 October 2024 22:23:13 UTC