keyframe-declaration-no-important
Disallow invalid !important within keyframe declarations.
@keyframes foo { from { opacity: 0 } to { opacity: 1 !important }} /* ↑ *//** ↑* This !important */Use this rule to avoid !important that has no effect. Some browsers ignore the entire declaration when it contains !important.
This rule doesn’t have any message arguments.
Options
Section titled “Options”{ "keyframe-declaration-no-important": true}The following pattern is considered a problem:
@keyframes foo { from { opacity: 0; } to { opacity: 1 !important; }}The following patterns are not considered problems:
@keyframes foo { from { opacity: 0; } to { opacity: 1; }}a { color: pink !important; }