Skip to content

Commit

Permalink
[css-fonts] Add tests for standard font families (#19917)
Browse files Browse the repository at this point in the history
  • Loading branch information
litherum authored and foolip committed Nov 22, 2019
1 parent 0d75262 commit 21f50fc
Show file tree
Hide file tree
Showing 32 changed files with 576 additions and 0 deletions.
17 changes: 17 additions & 0 deletions css/css-fonts/standard-font-family-10-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<style>
@font-face {
font-family: "AppleSystemUIRounded";
src: local("ui-rounded");
}
</style>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'AppleSystemUIRounded'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions css/css-fonts/standard-font-family-10.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-10-notref.html"/>
<meta name="assert" content="ui-rounded's bold in @font-face isn't synthetic"/>
<style>
@font-face {
font-family: "AppleSystemUIRounded";
src: local("ui-rounded");
}
</style>
</head>
<body>
<div>
<div style="display: inline-block; font: bold 72px 'AppleSystemUIRounded'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-11-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-11.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-11-notref.html"/>
<meta name="assert" content="ui-serif works"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-serif';">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-12-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-12.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-12-notref.html"/>
<meta name="assert" content="ui-monospace works"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-monospace';">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-13-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-13.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-13-notref.html"/>
<meta name="assert" content="ui-rounded works"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-rounded';">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-14-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions css/css-fonts/standard-font-family-14.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-14-notref.html"/>
<meta name="assert" content="ui-serif in @font-face works"/>
<style>
@font-face {
font-family: "AppleSystemUISerif";
src: local("ui-serif");
}
</style>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'AppleSystemUISerif';">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-15-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions css/css-fonts/standard-font-family-15.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-15-notref.html"/>
<meta name="assert" content="ui-monospace in @font-face works"/>
<style>
@font-face {
font-family: "AppleSystemUIMonospace";
src: local("ui-monospace");
}
</style>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'AppleSystemUIMonospace';">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-16-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions css/css-fonts/standard-font-family-16.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-16-notref.html"/>
<meta name="assert" content="ui-rounded in @font-face works"/>
<style>
@font-face {
font-family: "AppleSystemUIRounded";
src: local("ui-rounded");
}
</style>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'AppleSystemUIRounded';">HeJllo</div>
</div>
</body>
</html>
18 changes: 18 additions & 0 deletions css/css-fonts/standard-font-family-2-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
This test makes sure that the bold versions of the design system UI fonts work. The test passes if all the text below is bold.
<div>
<div style="display: inline-block; font: bold 72px 'ui-serif';">HeJllo</div>
<div style="display: inline-block; font: bold 72px 'ui-monospaced';">HeJllo</div>
<div style="display: inline-block; font: bold 72px 'ui-rounded';">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.AppleSystemUIFontSerif';">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.SF NS Mono';">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.SF UI Mono';">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.AppleSystemUIFontRounded';">HeJllo</div>
</div>
</body>
</html>
21 changes: 21 additions & 0 deletions css/css-fonts/standard-font-family-2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="match" href="standard-font-family-2-ref.html"/>
<meta name="assert" content="Bold versions of standard fonts work"/>
</head>
<body>
This test makes sure that the bold versions of the design system UI fonts work. The test passes if all the text below is bold.
<div>
<div style="display: inline-block; font: bold 72px 'ui-serif'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px 'ui-monospaced'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px 'ui-rounded'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.AppleSystemUIFontSerif'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.SF NS Mono'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.SF UI Mono'; font-synthesis: none;">HeJllo</div>
<div style="display: inline-block; font: bold 72px '.AppleSystemUIFontRounded'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-3-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-serif'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-3-notref.html"/>
<meta name="assert" content="ui-serif's bold isn't synthetic"/>
</head>
<body>
<div>
<div style="display: inline-block; font: bold 72px 'ui-serif'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-4-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-monospaced'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-4-notref.html"/>
<meta name="assert" content="ui-monospace's bold isn't synthetic"/>
</head>
<body>
<div>
<div style="display: inline-block; font: bold 72px 'ui-monospace'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
11 changes: 11 additions & 0 deletions css/css-fonts/standard-font-family-5-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
<div>
<div style="display: inline-block; font: 72px 'ui-rounded'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions css/css-fonts/standard-font-family-5.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="mismatch" href="standard-font-family-5-notref.html"/>
<meta name="assert" content="ui-rounded's bold isn't synthetic"/>
</head>
<body>
<div>
<div style="display: inline-block; font: bold 72px 'ui-rounded'; font-synthesis: none;">HeJllo</div>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions css/css-fonts/standard-font-family-6-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
</head>
<body>
This test makes sure that the design system UI fonts don't work unless they are accessed from their correct names. The test passes if all the text below is rendered in Times.
<div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
<div style="display: inline-block; font-size: 72px;">HeJllo</div>
</div>
</body>
</html>
36 changes: 36 additions & 0 deletions css/css-fonts/standard-font-family-6.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Myles C. Maxfield" href="mailto:[email protected]"/>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#standard-font-families"/>
<link rel="match" href="standard-font-family-6-ref.html"/>
<meta name="assert" content="Standard fonts don't work in @font-face unless they are accessed from their correct names"/>
<style>
@font-face {
font-family: "DotAppleSystemUIFontSerif";
src: local(".AppleSystemUIFontSerif");
}
@font-face {
font-family: "DotSFNSMono";
src: local(".SF NS Mono");
}
@font-face {
font-family: "DotSFUIMono";
src: local(".SF UI Mono");
}
@font-face {
font-family: "DotAppleSystemUIFontRounded";
src: local(".AppleSystemUIFontRounded");
}
</style>
</head>
<body>
This test makes sure that the design system UI fonts don't work unless they are accessed from their correct names. The test passes if all the text below is rendered in Times.
<div>
<div style="display: inline-block; font: 72px 'DotAppleSystemUIFontSerif';">HeJllo</div>
<div style="display: inline-block; font: 72px 'DotSFNSMono';">HeJllo</div>
<div style="display: inline-block; font: 72px 'DotSFUIMono';">HeJllo</div>
<div style="display: inline-block; font: 72px 'DotAppleSystemUIFontRounded';">HeJllo</div>
</div>
</body>
</html>
Loading

0 comments on commit 21f50fc

Please sign in to comment.