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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-box-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 <style>
4 @font-face {
5 font-family: variabletest_box;
6 src: url(../../../http/tests/resources/variabletest_box.ttf);
7 }
8
9 body {
10 font-family: variabletest_box,
11 sans-serif;
12 font-size: 200px;
13 }
14
15 .a_low {
16 font-variation-settings: "upwd" 0;
17 }
18
19 .a_up {
20 font-variation-settings: "upwd" 350;
21 }
22 </style>
23 <!-- The variabletest_box font has an A glyph that looks like a lower half box,
24 with deltas on the 'upwd' variation axis that allow shifting the box up. At
25 350, the box is at the top. The font also has two glyphs for UPPER HALF BLOCK
26 and LOWER HALF BLOCK, which look identical to the respective variations of A.
27 -->
28 A <span class="a_up">A</span>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698