-
Notifications
You must be signed in to change notification settings - Fork 38
/
variablefont-fout-test.html
56 lines (56 loc) · 1.37 KB
/
variablefont-fout-test.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style>
body {
font-family: sans-serif;
}
p {
margin: 0;
}
div {
position: relative;
min-height: 3em;
font-size: 3em;
}
div p:first-child {
color: red;
font-family: system-ui, -apple-system, '.SFNSText-Regular', monospace; /*sans-serif;*/
font-style: italic;
font-variation-settings: 'wght' .5, 'wdth' 1, 'ital' 1, 'slnt' 1, 'opsz' 1;
}
div p:first-child + p {
color: green;
font-family: sans-serif;
font-style: italic;
}
.overlay p {
position: absolute;
width: 100%;
left: 0;
top: 0;
opacity: .7;
}
</style>
</head>
<body>
<h1>Variable Font FOUT Test</h1>
<h2>sans-serif</h2>
<div>
<p></p>
<p>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz</p>
</div>
<h2>system-ui, -apple-system, `.SFNSText-Regular` (San Francisco on Mac)</h2>
<div>
<p>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz</p>
</div>
<h2>FOUT Overlay</h2>
<div class="overlay">
<p>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz</p>
<p>Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz</p>
</div>
</body>
</html>