property-no-unknown
Disallow unknown properties.
a { height: 100%; }
/** ↑
* This property */
This rule considers properties defined in the CSS Specifications and browser specific properties to be known.
This rule ignores:
- variables (
$sass
,@less
,--custom-property
) - vendor-prefixed properties (e.g.,
-moz-align-self
,-webkit-align-self
)
Use option checkPrefixed
described below to turn on checking of vendor-prefixed properties.
The message
secondary option can accept the arguments of this rule.
Options
true
The following patterns are considered problems:
a {
colr: blue;
}
a {
my-property: 1;
}
The following patterns are not considered problems:
a {
color: green;
}
a {
fill: black;
}
a {
-moz-align-self: center;
}