#3886·sass

Compatibility with the proposed CSS if function

Author: stofCreated Jun 19, 2024Updated Dec 18, 2025
LabelsenhancementCSS compatibilityrequires deprecation

The CSSWG has resolved working on inline conditionals for CSS. For now, the proposed syntax uses a if() function. See https://lea.verou.me/blog/2024/css-conditionals/ and https://github.com/w3c/csswg-drafts/issues/10064

Even though the syntax is not yet final (the proposal has just started), the current syntax will require adjustments in Sass:

The work on this proposal should be tracked to figure out how the compatibility layer should look like.