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

Here is another idea...

introduce 3 versions of "ifs" to scss?

|          | action                 | appears in css |
| -------- | ---------------------- | -------------- |
| @if      | depends on global setting | ❌ / ✅        |
| @scss-if | scss as is             | ❌             |
| @css-if  | becomes native @if     | ✅             |

With that add an option `--handle-if=scss|css` which can set what `@if` should be.

For now, it would default to `scss` but greenfield projects could opt into using the "native" if?

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


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

Received on Tuesday, 15 March 2022 23:26:48 UTC