指定禁用的属性的黑名单。
a { text-rendering: optimizeLegibility; }
/** ↑
* 这个属性 */
array|string: ["array", "of", "unprefixed", /properties/ or "regex"]|"property"|"/regex/"|/regex/
如果字符串用 "/" 包围(例如 "/^background/"),则将其解释为正则表达式。这允许方便的简写,例如:/^background/ 将匹配 background、background-size、background-color 等。
给定:
[ "text-rendering", "animation", "/^background/" ]
以下模式被视为违规:
a { text-rendering: optimizeLegibility; }
a {
animation: my-animation 2s;
color: pink;
}
a { -webkit-animation: my-animation 2s; }
a { background: pink; }
a { background-size: cover; }
以下模式不被视为违规:
a { color: pink; }
a { no-background: sure; }