| <script src="../resources/animation-test-helpers.js"></script> |
| src: url("resources/Boxis-VF.ttf"); |
| @keyframes TheAnimation { |
| font-variation-settings: "wdth" 400; |
| font-variation-settings: "wdth" 900; |
| animation-timing-function: linear; |
| <div id="box">Hello</div> |
| // [animation-name, time, element-id, property, expected-value, tolerance] |
| ["TheAnimation", 0.5, "box", "font-variation-settings", "'wdth' 483.3333", 5], |
| ["TheAnimation", 1.0, "box", "font-variation-settings", "'wdth' 566.6666", 5], |
| ["TheAnimation", 2.0, "box", "font-variation-settings", "'wdth' 733.3333", 5], |
| document.fonts.forEach(function(f) { |
| Promise.all(promises).then(function() { |
| document.getElementById("box").style.animationName = "TheAnimation"; |
| runAnimationTest(expectedValues, undefined, undefined, undefined, false, undefined); |