property-blacklist
Deprecated: Instead use the property-disallowed-list
rule.
Specify a list of disallowed properties.
text-rendering: optimizeLegibility; }
a { /** ↑
* This property */
Options
array|string
:
["array", "of", "unprefixed", /properties/ or "regex"]|"property"|"/regex/"
|/regex/
If a string is surrounded with "/"
(e.g. "/^background/"
), it is interpreted as a regular
expression. This allows, for example, easy targeting of shorthands:
/^background/
will match background
,
background-size
, background-color
, etc.
Given:
["text-rendering", "animation", "/^background/"]
The following patterns are considered violations:
text-rendering: optimizeLegibility; } a {
a {animation: my-animation 2s;
color: pink;
}
-webkit-animation: my-animation 2s; } a {
background: pink; } a {
background-size: cover; } a {
The following patterns are not considered violations:
color: pink; } a {
: sure; } a { no-background