-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-fonts] Add tests for standard font families
- Loading branch information
Showing
32 changed files
with
576 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.