Specify a blacklist of disallowed properties.
指定一个禁止使用的属性的黑名单。
a { text-rendering: optimizeLegibility; }
/** ↑
* These properties */
array|string: ["array", "of", "unprefixed", "properties" or "regex"]|"property"|"/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.
如果一个字符串被 "/"
(如,"/^background/"
) 包围,它将被解释为一个正则表达式。例如,这将允许简单地匹配简写: /^background/
将匹配 background
,background-size
,background-color
等。
Given:
给出:
[ "text-rendering", "animation", "/^background/" ]
The following patterns are considered warnings:
以下模式被认为是个警告:
a { text-rendering: optimizeLegibility; }
a {
animation: my-animation 2s;
color: pink;
}
a { -webkit-animation: my-animation 2s; }
a { background: pink; }
a { background-size: cover; }
The following patterns are not considered warnings:
以下模式正常:
a { color: pink; }
a { no-background: sure; }