Pattern: Wrong property alphabetical order in declaration block
Issue: -
Specify the alphabetical order of properties within declaration blocks. Prefixed properties must always precede the unprefixed version.
This rule ignores variables ($sass
, @less
, --custom-property
).
The following patterns are considered warnings:
a {
top: 0;
color: pink;
}
a {
-moz-transform: scale(1);
transform: scale(1);
-webkit-transform: scale(1);
}
The following patterns are not considered warnings:
a {
color: pink;
top: 0;
}
a {
-webkit-transform: scale(1);
-moz-transform: scale(1);
transform: scale(1);
}
a {
-moz-transform: scale(1);
-webkit-transform: scale(1);
transform: scale(1);
}