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