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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-box-font.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-box-font.html b/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-box-font.html
new file mode 100644
index 0000000000000000000000000000000000000000..c83abcc40a181a45c83be071e68c387424702aa6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-box-font.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<style>
+ @font-face {
+ font-family: variabletest_box;
+ src: url(../../../http/tests/resources/variabletest_box.ttf);
+ }
+
+ body {
+ font-family: variabletest_box,
+ sans-serif;
+ font-size: 200px;
+ }
+
+ .a_low {
+ font-variation-settings: "upwd" 0;
+ }
+
+ .a_up {
+ font-variation-settings: "upwd" 350;
+ }
+</style>
+<!-- The variabletest_box font has an A glyph that looks like a lower half box,
+ with deltas on the 'upwd' variation axis that allow shifting the box up. At
+ 350, the box is at the top. The font also has two glyphs for UPPER HALF BLOCK
+ and LOWER HALF BLOCK, which look identical to the respective variations of A.
+-->
+A <span class="a_up">A</span>

Powered by Google App Engine
This is Rietveld 408576698