libsass icon indicating copy to clipboard operation
libsass copied to clipboard

selector-extend() and selector-replace() don't always optimize out redundant selectors

Open nex3 opened this issue 4 years ago • 0 comments

Calling selector-extend("c.d", "c, .d", ".e") currently returns .c.d, .d.e, .e. The selector .d.e there is redundant because it's a subselector of .e and isn't covered by either law of extend, so it should be optimized away.

nex3 avatar Feb 26 '20 23:02 nex3