blob: 813b654413f1ef47921d93281e6f92503f3863cc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
@keyframes test1 {
from { left: 10px; }
to { left: 20px; }
}
</style>
</head>
<body>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Tests that the parameters are mandatory in CSSKeyframesRule API.");
var keyframes = document.styleSheets.item(0).cssRules.item(0);
shouldBe("keyframes.__proto__", "CSSKeyframesRule.prototype");
shouldThrow("keyframes.insertRule()");
shouldThrow("keyframes.appendRule()");
shouldThrow("keyframes.deleteRule()");
shouldThrow("keyframes.findRule()");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>