/** Test for Bug 978833 */
function test_bug978833() { var kfs = style.cssRules[0]; var kf = kfs.cssRules[0];
is(kf.style.marginLeft, "50px", "we found the right keyframe rule");
p.classList.add("alwaysa");
is(cs.marginLeft, "50px", "p margin-left should be 50px");
// Temporarily remove the animation style, since we resolve keyframes
// on top of current animation styles (although maybe we shouldn't),
// so we need to remove those styles to hit the rule tree cache. p.classList.remove("alwaysa");
is(cs.marginLeft, "0px", "p margin-left should be 0px without animation");
p.classList.add("alwaysa");
kf.style.marginLeft = "100px";
is(cs.marginLeft, "100px", "p margin-left should be 100px after change");
// Try the same thing a second time, just to make sure it works again. p.classList.remove("alwaysa");
is(cs.marginLeft, "0px", "p margin-left should be 0px without animation"); p.classList.add("alwaysa");
kf.style.marginLeft = "150px";
is(cs.marginLeft, "150px", "p margin-left should be 150px after second change");
p.style.animation = "";
}
test_bug978833();
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-09-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.