Re: [csswg-drafts] [css-conditional-4] Rename @when to @if (#6684)

> Personally I would find a syntax like `@if test(<boolean-condition>)` less of an eyesore then `@when/@else` - a function that returns a boolean is a familiar construct, and I believe this would meet the criteria required for dual-parsing?

`<boolean-condition>` is going to be used in a lot more places than `@if` though. `if(test(<condition>, <if-true>, <if-false>)` is pretty unwieldy, and there is no CSS disambiguation reason for the verbosity.

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


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

Received on Wednesday, 23 March 2022 13:19:07 UTC