メインコンテンツにスキップ

property-disallowed-list

許可されないプロパティのリストを指定します。

a { text-rendering: optimizeLegibility; }
/** ↑
* This property */

message セカンダリオプション は、このルールの引数を受け入れることができます。

オプション

array|string|regex: ["array", "of", /properties/, "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; }