LearnBoost/stylus — Issue #434: Proper ordering of classes and pseudo-classes
Author: iangreenleaf
Created: 2011-10-11 23:54:51+00:00
State: open

Right now, stylus will just do the most obvious thing when working with a pseudo-class:

$ echo -e "a:before\n &.foo\n color red" | stylus
a:before.foo {
color: #f00;
}

Unfortunately, this isn't what we actually *wanted*. It would be super cool if stylus knew to transform that into this:

a.foo:before {
color: #f00;
}