Pattern: Missing percentage/number notation for alpha-value
Issue: -
Specify percentage or number notation for alpha-values.
string
: "number"|"percentage"
Alpha-values must always use the number notation.
The following patterns are considered violations:
a { opacity: 50% }
a { color: rgb(0 0 0 / 50%) }
The following patterns are not considered violations:
a { opacity: 0.5 }
a { color: rgb(0 0 0 / 0.5) }
Alpha-values must always use percentage notation.
The following patterns are considered violations:
a { opacity: 0.5 }
a { color: rgb(0 0 0 / 0.5) }
The following patterns are not considered violations:
a { opacity: 50% }
a { color: rgb(0 0 0 / 50%) }