libcss2less icon indicating copy to clipboard operation
libcss2less copied to clipboard

Selectors are not arranged in same order

Open nicooprat opened this issue 13 years ago • 1 comments

Sometimes, parts of CSS are not compiled in the same order that they appear originally.

nicooprat avatar May 04 '12 15:05 nicooprat

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.

mikko-apo avatar Apr 19 '13 13:04 mikko-apo