Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html b/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..26763e6fa5c4ddcd36cf0c93da8aea0bc3044fe3 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html |
| @@ -0,0 +1,29 @@ |
| +<!DOCTYPE html> |
| +<meta charset="utf-8"> |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| +<script> |
| +setup({ explicit_done: true }); |
| +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.
|
| + test(function() { assert_true(narrow.getBoundingClientRect().width < |
| + wide.getBoundingClientRect().width * 0.6); }, |
| + "Narrow Skia variation is less than 60% as wide."); |
| + done(); |
| +}; |
| +</script> |
| +<style> |
| +.variation { |
| +font-family: Skia, sans-serif; |
| +font-size: 150px; |
| +} |
| + |
| +#narrow { |
| +font-variation-settings: "wdth" 0.61998; |
| +} |
| + |
| +#wide { |
| +font-variation-settings: "wdth" 1.29999; |
| +} |
| +</style> |
| +<span class="variation" id="narrow">wwwwide</span><br> |
| +<span class="variation" id="wide">wwwwide</span> |