summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/variations/font-weight-metrics-ref.html
blob: 021586c15421fc58f549cd4dcb7a9174b29c54c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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>