font-optical-sizing applies the wrong variation value
[WebKit-https.git] / LayoutTests / fast / text / variations / optical-sizing-units-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 @font-face {
6     font-family: "Amstelvar";
7     src: url("resources/Amstelvar/Amstelvar-Roman-VF104.ttf") format("truetype");
8 }
9 #target {
10     display: inline-block;
11     font: 10px "Amstelvar";
12     transform: scale(10);
13     transform-origin: left top;
14     font-variation-settings: "opsz" 10;
15 }
16 </style>
17 </head>
18 <body>
19 <p>This test makes sure that <code>font-optical-sizing: auto</code> applies the correct value to the <code>opsz</code> variation axis. The test passes if the text below matches the expected text, pixel-per-pixel.</p>
20 <span id="target">Hello, world!</span>
21 </body>
22 </html>