Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html

Issue 2581083003: Initial OpenType Font Variations Support (Closed)
Patch Set: Fix makeUnique syntax Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698