hue-degree-notation
指定色调的数字或角度符号。
¥Specify number or angle notation for degree hues.
a { color: hsl(198deg 28% 50%) }
/** ↑
* This notation */
由于色调通常以度数给出,因此色调也可以以数字形式给出,这被解释为度数。
¥Because hues are so often given in degrees, a hue can also be given as a number, which is interpreted as a number of degrees.
fix
选项 可以自动修复此规则报告的所有问题。
¥The fix
option can automatically fix all of the problems reported by this rule.
message
次要选项 可以接受该规则的参数。
¥The message
secondary option can accept the arguments of this rule.
选项
¥Options
string
:"angle"|"number"
"angle"
度数色调必须始终使用角度表示法。
¥Degree hues must always use angle notation.
以下模式被视为问题:
¥The following patterns are considered problems:
a { color: hsl(198 28% 50%) }
a { color: lch(56.29% 19.86 10 / 15%) }
以下模式不被视为问题:
¥The following patterns are not considered problems:
a { color: hsl(198deg 28% 50%) }
a { color: lch(56.29% 19.86 10deg / 15%) }
"number"
度色调必须始终使用数字表示法。
¥Degree hues must always use the number notation.
以下模式被视为问题:
¥The following patterns are considered problems:
a { color: hsl(198deg 28% 50%) }
a { color: lch(56.29% 19.86 10deg / 15%) }
以下模式不被视为问题:
¥The following patterns are not considered problems:
a { color: hsl(198 28% 50%) }
a { color: lch(56.29% 19.86 10 / 15%) }