Sass: Sass and Native Nesting
.foo, #bar {
.baz { /* ... */ }
}
produces the selector .foo .baz, #bar .baz in Sass but :is(.foo, #bar)) .baz in native CSS. This changes the specificity: :is() always has the specificity of its most specific selector,
Sass nesting and native CSS nesting both support syntax that looks like &foo, but it means different things.
August 31, 2023 at 10:22:03 AM EDT
*
FILLER