Skip to content

Commit 8d7ec07

Browse files
authored
Adding Private-Use-Area (PUA) character test (#45895)
This test that we are using the primary font specified by author when indicating missing glyph for PUA character.
1 parent 0af816b commit 8d7ec07

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="author" title="Vitor Roriz" href="https://github.com/vitorroriz">
5+
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#char-handling-issues">
6+
<style>
7+
.target {
8+
font-family: Times;
9+
font-size: 60px;
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
"If a given character is a Private-Use Area Unicode codepoint, user agents must only match font families named in the font-family list that are not generic families. If none of the families named in the font-family list contain a glyph for that codepoint, user agents must display some form of missing glyph symbol for that character rather than attempting installed font fallback for that codepoint." - <a href="https://drafts.csswg.org/css-fonts-4/#char-handling-issues">css-fonts-4</a>
15+
<p class="target">&#xE0AD;&#xE0AE;&#xE0AD;&#xE0AF;&#xE0B0;&#xE0B1;&#xE0C0;&#xE0C1;&#xE0D3;&#xE0D4;</p>
16+
</body>
17+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel="author" title="Vitor Roriz" href="https://github.com/vitorroriz">
5+
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#char-handling-issues">
6+
<link rel="mismatch" href="./font-unicode-PUA-primary-font-notref.html">
7+
<style>
8+
.target {
9+
font-family: Arial;
10+
font-size: 60px;
11+
}
12+
</style>
13+
</head>
14+
<body>
15+
"If a given character is a Private-Use Area Unicode codepoint, user agents must only match font families named in the font-family list that are not generic families. If none of the families named in the font-family list contain a glyph for that codepoint, user agents must display some form of missing glyph symbol for that character rather than attempting installed font fallback for that codepoint." - <a href="https://drafts.csswg.org/css-fonts-4/#char-handling-issues">css-fonts-4</a>
16+
<p class="target">&#xE0AD;&#xE0AE;&#xE0AD;&#xE0AF;&#xE0B0;&#xE0B1;&#xE0C0;&#xE0C1;&#xE0D3;&#xE0D4;</p>
17+
</html>

0 commit comments

Comments
 (0)