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

Unified 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 side-by-side diff with in-line comments
Download patch
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..2cbd637302a9505b4753a11ec5cc3884a6b7a05d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/variable-fonts/variable-mac-system-font.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></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>
+<script>
+setup({ explicit_done: true });
+test(function() { assert_true(narrow.getBoundingClientRect().width <
+ wide.getBoundingClientRect().width * 0.6); },
+ "Narrow Skia variation is less than 60% as wide.");
+done();
+</script>

Powered by Google App Engine
This is Rietveld 408576698