本文へスキップ

function-disallowed-list

許可しない関数の一覧を指定します。

a { transform: scale(1); }
/** ↑
* This function */

このルールの引数には、messageセカンダリオプションを使用できます。

オプション

array|string|regex: ["array", "of", "unprefixed", /functions/, "regex"]|"function"|"/regex/"|/regex/

文字列が"/"で囲まれている場合(例:"/^rgb/")、正規表現として解釈されます。

["scale", "rgba", "linear-gradient"]

以下のパターンは問題とみなされます。

a { transform: scale(1); }
a {
color: rgba(0, 0, 0, 0.5);
}
a {
background:
red,
-moz-linear-gradient(45deg, blue, red);
}

以下のパターンは問題とみなされません。

a { background: red; }