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

@Loirooriol

> Add `@css-if` or something for SASS users that want to use the CSS version. It will be translated into `@if` in the resulting stylesheet.

Yeah, I previously [proposed](https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221726933) the same option too. Lea also quoted it in the starting message of this thread.

Actually, prefixing (for either preprocessor-specific or standard things) is basically the only way for a preprocessor syntax to be future-proof and free of potential conflicts with the standard syntax. So either preprocessor-specific things are prefixed like `@_if`, or standard things in preprocessor source files are prefixed like `@css-if`. And it’s not just about `@if`/`@else`.

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


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

Received on Saturday, 12 March 2022 00:45:34 UTC