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

Let's say we go with `@when`. What happens with `@else`? https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221669910 says it's fine, but how so? I tried a quick test in codepen, and using `@when` and `@else` makes SCSS abort with "This at-rule is not allowed here", pointing to `@else`.

Sure, I guess you can change SCSS so that `@else` is left as-is when following `@when`, and handled internally when following `@if`. But one argument against a CSS `@if` was that "a 15yr old ecosystem that doesn't update quickly or simply". So isn't it the same exact problem if people will have to update anyways for `@else`? I don't get it.

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


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

Received on Saturday, 19 March 2022 22:02:02 UTC