-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case where the same font-family is defined in an SVG island …
…and the surrounding HTML
- Loading branch information
1 parent
8fa6bfe
commit ea67096
Showing
3 changed files
with
107 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
Binary file added
BIN
+19.4 KB
testdata/subsetFonts/svg/inline-in-html-font-face-in-both-places/KFOmCnqEu92Fr1Mu4mxM.woff
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
testdata/subsetFonts/svg/inline-in-html-font-face-in-both-places/index.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,28 @@ | ||
<!DOCTYPE html> | ||
<html><head> | ||
<style> | ||
@font-face { | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(KFOmCnqEu92Fr1Mu4mxM.woff) format('woff'); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1 style="font-family: Roboto;">Yay</h1> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100"> | ||
<defs> | ||
<style> | ||
@font-face { | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(KFOmCnqEu92Fr1Mu4mxM.woff) format('woff'); | ||
} | ||
</style> | ||
</defs> | ||
<text x="20" y="50" font-family="Roboto">Hello, world!</text> | ||
</svg> | ||
</body> | ||
</html> |