forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebKit export: Allow matching of empty font-family names for web fonts (
- Loading branch information
1 parent
66cc260
commit 1245998
Showing
2 changed files
with
46 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,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Tests that an empty font family name is handled correctly</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-fonts/#font-family-2-desc"> | ||
<style> | ||
@font-face { | ||
font-family: "COLR-test-font"; | ||
src: url("resources/COLR-palettes-test-font.ttf") format("truetype"); | ||
} | ||
|
||
@font-palette-values --MyPalette { | ||
font-family: "COLR-test-font"; | ||
base-palette: 1; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="font: 48px 'COLR-test-font'; font-palette: --MyPalette;">A</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,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Tests that a non-ident font family name is handled correctly</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-fonts/#font-family-2-desc"> | ||
<link rel="author" title="Matthieu Dubet" href="mailto:m_dubet@apple.com"> | ||
<link rel="match" href="font-palette-non-ident-font-family-ref.html"> | ||
<style> | ||
@font-face { | ||
font-family: "foo bar"; | ||
src: url("resources/COLR-palettes-test-font.ttf") format("truetype"); | ||
} | ||
|
||
@font-palette-values --MyPalette { | ||
font-family: "foo bar"; | ||
base-palette: 1; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="font: 48px 'foo bar'; font-palette: --MyPalette;">A</div> | ||
</body> | ||
</html> |