:not(.foo) { content: test; } .bar, .baz { @extend .foo; } test { content: selector-extend(":not(.foo)", ".foo", ".bar"); }