Skip to content

Commit d001e37

Browse files
committed
variable-fonts/font-weight: fix @font-face declaration
Apparently Chrome and Safari depend on declaring the `font-weight` range in the @font-face declaration for variable fonts to behave predictably.
1 parent e39d727 commit d001e37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

variable-fonts/font-weight.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
src: url('fonts/MutatorSans.ttf');
2121
font-family:'MutatorSans';
2222
font-style: normal;
23+
font-weight: 1 1000;
2324
}
2425

2526
label {
@@ -48,6 +49,7 @@
4849
src: url('fonts/MutatorSans.ttf');
4950
font-family:'MutatorSans';
5051
font-style: normal;
52+
font-weight: 1 1000;
5153
}
5254

5355
label {

0 commit comments

Comments
 (0)