libcss2less
libcss2less copied to clipboard
Selectors are not arranged in same order
Sometimes, parts of CSS are not compiled in the same order that they appear originally.
Here's an example test case for that:
.recipient input.text {width:400px;}
.recipient input.postal {width:100px;}
.recipient input.city {width:278px;}
gets converted to
.recipient {
input.city {
width:278px;
}
input.postal {
width:100px;
}
input.text {
width:400px;
}
}
which is incorrect, because the original format defines a default that the 2nd definitions override.