declaration-property-unit-blacklist
Deprecated: Instead use the declaration-property-unit-disallowed-list
rule.
Specify a list of disallowed property and unit pairs within declarations.
width: 100px; }
a { /** ↑ ↑
* These properties and these units */
Options
object
:
{ "unprefixed-property-name": ["array", "of", "units"] }
If a property name is surrounded with "/"
(e.g. "/^animation/"
), it is interpreted as a regular
expression. This allows, for example, easy targeting of shorthands:
/^animation/
will match animation
,
animation-duration
, animation-timing-function
,
etc.
Given:
{
"font-size": ["em", "px"],
"/^animation/": ["s"]
}
The following patterns are considered violations:
font-size: 1em; } a {
animation: animation-name 5s ease; } a {
-webkit-animation: animation-name 5s ease; } a {
animation-duration: 5s; } a {
The following patterns are not considered violations:
font-size: 1.2rem; } a {
height: 100px; } a {
animation: animation-name 500ms ease; } a {
-webkit-animation: animation-name 500ms ease; } a {
animation-duration: 500ms; } a {