| <script src="../resources/animation-test-helpers.js"></script> |
| @keyframes TheAnimation { |
| font-style: oblique 21deg; |
| font-style: oblique 89deg; |
| animation-timing-function: linear; |
| <div id="box">Hello</div> |
| // [animation-name, time, element-id, property, expected-value, tolerance] |
| ["TheAnimation", 0.5, "box", "font-style", "oblique 32.3666", 10], |
| ["TheAnimation", 1.0, "box", "font-style", "oblique 43.6666", 10], |
| ["TheAnimation", 2.0, "box", "font-style", "oblique 66.3333", 10], |
| document.fonts.forEach(function(f) { |
| Promise.all(promises).then(function() { |
| document.getElementById("box").style.animationName = "TheAnimation"; |
| runAnimationTest(expectedValues, undefined, undefined, undefined, false, undefined); |