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 <style> |
| 6 .variation { |
| 7 font-family: Skia, sans-serif; |
| 8 font-size: 150px; |
| 9 } |
| 10 |
| 11 #narrow { |
| 12 font-variation-settings: "wdth" 0.61998; |
| 13 } |
| 14 |
| 15 #wide { |
| 16 font-variation-settings: "wdth" 1.29999; |
| 17 } |
| 18 </style> |
| 19 <span class="variation" id="narrow">wwwwide</span><br> |
| 20 <span class="variation" id="wide">wwwwide</span> |
| 21 <script> |
| 22 setup({ explicit_done: true }); |
| 23 test(function() { assert_true(narrow.getBoundingClientRect().width < |
| 24 wide.getBoundingClientRect().width * 0.6); }, |
| 25 "Narrow Skia variation is less than 60% as wide."); |
| 26 done(); |
| 27 </script> |
OLD | NEW |