#11821·biome

Support Sass if() expressions inside url()

Author: denbezrukovCreated Sep 17, 2026Updated Sep 17, 2026
LabelsL-CSS

Description

Biome needs to parse a Sass if() expression nested inside url() without treating the whole body as raw URL text.

scss
$dark: true;

.a {
  background: url(if(sass($dark): "dark.png"; else: "light.png"));
}