Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Incorrect property order in 2.1.1 #13

Closed
kallaspriit opened this issue Jan 7, 2016 · 3 comments
Closed

Incorrect property order in 2.1.1 #13

kallaspriit opened this issue Jan 7, 2016 · 3 comments

Comments

@kallaspriit
Copy link

This code:

.icon {
    &.active {
        height: 1px;
     }
     &.small {
        height: 2px;
    }
}

is compiled to:

.icon.small {
    height: 2px;
}
.icon.active {
    height: 1px;
}

Works properly in 2.0.6.

csstools/precss#50

@Garbee
Copy link

Garbee commented Jan 10, 2016

Looks like commit 9311892 is the most likely cause.

One way to get the right order until the exact bug is found and patched is to just use @nest before each rule. That creates the proper output in my testing.

@jonathantneal
Copy link
Collaborator

@Garbee, @kallaspriit, thank you for pointing this out to me. I have fixed this in v2.2.0. Enjoy!

@lovefishs
Copy link

Problem is not fixed!
Incorrect property order in v2.2.0 and v2.3.1.
in v2.0.6 is working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants