rspec/rules/S4655/css/rule.adoc

41 lines
854 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
``++!important++`` within keyframes declarations is completely ignored in some browsers and therefore it should not be used to be consistent among all browsers.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
@keyframes kf {
from { margin-top: 50px; }
50% { margin-top: 150px !important; } /* Noncompliant; ignored */
to { margin-top: 100px; }
}
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
@keyframes kf {
from { margin-top: 50px; }
50% { margin-top: 150px; }
to { margin-top: 100px; }
}
----
2021-04-28 16:49:39 +02:00
== See
* https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes#!important_in_a_keyframe[Mozilla Web Technology for Developers] - ``++!important++`` in a keyframe
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::highlighting.adoc[]
endif::env-github,rspecator-view[]