blob: cb02cdfec51cd52be9880ffef37627d3cb5b3835 [file] [log] [blame]
kling@webkit.orgfa97d642011-12-30 17:32:12 +00001<!DOCTYPE html>
2<html>
3<head>
4<meta charset="utf-8">
mark.lam@apple.com104d9932013-09-07 22:20:15 +00005<script src="../../resources/js-test-pre.js"></script>
kling@webkit.orgfa97d642011-12-30 17:32:12 +00006<style>
7 @-webkit-keyframes anim {
8 from {
9 color: green;
10 }
11 }
12</style>
13</head>
14<body>
15<script>
16
17description("This test verifies that a keyframe rule's 'parentRule' points back to the keyframe rule.");
18
19var rules = document.styleSheets[1].cssRules;
20
21shouldBe("rules[0][0].parentRule", "rules[0]");
22shouldBe("rules[0][0].style.parentRule", "rules[0][0]");
23
24</script>
mark.lam@apple.com104d9932013-09-07 22:20:15 +000025<script src="../../resources/js-test-post.js"></script>
kling@webkit.orgfa97d642011-12-30 17:32:12 +000026</body>
27</html>