You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| README.md | 2 weeks ago | |
| index.js | 2 weeks ago | |
README.md
keyframe-declaration-no-important
Disallow !important within keyframe declarations.
@keyframes foo {
from { opacity: 0 }
to { opacity: 1 !important }
} /* ↑ */
/** ↑
* This !important */
Using !important within keyframes declarations is completely ignored in some browsers.
Options
true
The following patterns is considered a violation:
@keyframes foo {
from {
opacity: 0;
}
to {
opacity: 1 !important;
}
}
The following patterns are not considered violations:
@keyframes foo {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
a { color: pink !important; }