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

> I am definitely oversimplifying this bit, but if it gives parser errors it might be safe to add support for css `@if` on top of sass `@if`?

I’ve wondered this myself.  As far as I can tell, Sass syntax is `@if bare_conditional_tests {…}`.  CSS would seem to be `@if function()s {…}`.  Isn’t it possible for Sass to tell the two apart at parse time and act accordingly?

-- 
GitHub Notification of comment by meyerweb
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6684#issuecomment-1076809984 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 20:54:01 UTC