summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html b/testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html
new file mode 100644
index 0000000000..021586c154
--- /dev/null
+++ b/testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Fonts - reference</title>
+<link rel="author" title="Jonathan Kew" href="jkew@mozilla.com">
+<meta charset="utf-8">
+
+<style>
+@font-face {
+ font-family: test;
+ font-weight: 900;
+ src: url(resources/Inter.var.subset.ttf);
+}
+div {
+ font: 32px test;
+ position: absolute;
+ margin: 1em;
+}
+.heavy {
+ background: green;
+ color: green;
+ font-weight: 900;
+}
+</style>
+
+Test passes if there is a green rectangle and <strong>no red</strong>:
+
+<div class=heavy>
+aaaaaaaaaaaaaaaaaaaaaaaaaaaa
+</div>