Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 968 Bytes

properties-alphabetical-order.md

File metadata and controls

57 lines (43 loc) · 968 Bytes

Pattern: Wrong property alphabetical order in declaration block

Issue: -

Description

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).

Examples

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);
}

Further Reading