Unreviewed, rolling out r207557.
[WebKit-https.git] / LayoutTests / animations / font-variation-settings-unlike.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.internals)
6     window.internals.settings.setVariationFontsEnabled(true);
7 </script>
8 <script src="resources/animation-test-helpers.js"></script>
9 <style>
10 @keyframes "weightAnimation" {
11     from {
12         font-variation-settings: "wght" 0.5, "wdth" 0.9;
13     }
14     to {
15         font-variation-settings: "wght" 3.2;
16     }
17 }
18
19 #box {
20     font: 100px "Skia";
21     animation-name: "weightAnimation";
22     animation-duration: 3s;
23     animation-timing-function: linear;
24 }
25 </style>
26 </head>
27 <body>
28 <div id="box">Hello</div>
29 <div id="result"></div>
30 <script>
31 var expectedValues = [
32     // [animation-name, time, element-id, property, expected-value, tolerance]
33     ["weightAnimation", 0.5, "box", "font-variation-settings", "normal", 0.05],
34     ["weightAnimation", 1.0, "box", "font-variation-settings", "normal", 0.05],
35     ["weightAnimation", 2.0, "box", "font-variation-settings", "normal", 0.05],
36 ];
37 runAnimationTest(expectedValues, undefined, undefined, undefined, true, undefined);
38 </script>
39 </body>
40 </html>