Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

Selector order not preserved when extending #193

Closed eevee closed 11 years ago

eevee commented 11 years ago

Ruby:

a { color: red; }
b { @extend a; }
# a, b { color: red; }

vs

b { color: red; }
a { @extend b; }
# b, a { color: red; }

We naïvely sorted the selectors, producing a, b in either case.

eevee commented 11 years ago

I can't think of any case where this would actually matter semantically. But it would be nice. :)

eevee commented 11 years ago

This is now fixed, barring a particular edge case that's covered by the imported Ruby test suite.