OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <meta charset="utf-8"> | |
3 <script src="../../../resources/testharness.js"></script> | |
4 <script src="../../../resources/testharnessreport.js"></script> | |
5 <script> | |
6 setup({ explicit_done: true }); | |
7 window.onload = () => { | |
eae
2016/12/16 18:48:27
I don't think you need to use an onload handler he
drott
2016/12/19 14:12:34
Moved to end, no onload handler.
| |
8 test(function() { assert_true(narrow.getBoundingClientRect().width < | |
9 wide.getBoundingClientRect().width * 0.6); }, | |
10 "Narrow Skia variation is less than 60% as wide."); | |
11 done(); | |
12 }; | |
13 </script> | |
14 <style> | |
15 .variation { | |
16 font-family: Skia, sans-serif; | |
17 font-size: 150px; | |
18 } | |
19 | |
20 #narrow { | |
21 font-variation-settings: "wdth" 0.61998; | |
22 } | |
23 | |
24 #wide { | |
25 font-variation-settings: "wdth" 1.29999; | |
26 } | |
27 </style> | |
28 <span class="variation" id="narrow">wwwwide</span><br> | |
29 <span class="variation" id="wide">wwwwide</span> | |
OLD | NEW |