| <title>Check that negative (out of range) key frame percentage doesn't cause subsequent first or second ruleset to be skipped.</title> |
| #test { background-color: red; color: black } |
| @-webkit-keyframes fade { -10% { color: red; } } |
| #test { background-color: green; } /* if skipped, then background will be red */ |
| #test { color: white; } /* if skipped, then text will be black */ |
| <div id="test">The background color of this element should be green and the text should be white.</div> |
| var s = getComputedStyle(document.getElementById("test")); |
| if (s.backgroundColor === "rgb(0, 128, 0)") { |
| r += 'PASS: background color is green'; |
| r += 'FAIL: background color not green'; |
| if (s.color === "rgb(255, 255, 255)") { |
| r += 'PASS: text color is white'; |
| r += 'FAIL: text color not white'; |
| document.getElementById("result").innerHTML = r; |