diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/font-face/name-collision-ref.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | layout/reftests/font-face/name-collision-ref.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/layout/reftests/font-face/name-collision-ref.html b/layout/reftests/font-face/name-collision-ref.html new file mode 100644 index 0000000000..d5f5d4106f --- /dev/null +++ b/layout/reftests/font-face/name-collision-ref.html @@ -0,0 +1,68 @@ +<!DOCTYPE HTML> +<html> +<head> +<title>Font name collision test</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + +<!-- + Font family names in @font-face rules take precedence over locally-available font families, + so none of the names of commonly used platform fonts should match against locally available + fonts. +--> + +<style type="text/css"> + +@font-face { + font-family: fallback; + src: url(../fonts/mplus/mplus-1p-regular.ttf); +} + +body { + margin: 50px; + font-family: fallback; +} + +table { + margin-left: 3em; +} + +@font-face { + font-family: Sample; + src: url(../fonts/mplus/mplus-1p-black.ttf); + font-weight: 900; +} + +.sample { font-family: Sample, fallback; } + +table { + font-family: Sample; +} + +table td { + font-size: 24pt; +} + +</style> + +</head> + +<body> + +<p>All text below should appear in the same extra bold font face:</p> + +<table> +<tr class="sample"><td>Sample</td></tr> +<tr class="arial"><td>Arial</td></tr> +<tr class="timesnewroman"><td>Times New Roman</td></tr> +<tr class="couriernew"><td>Courier New</td></tr> +<tr class="futura"><td>Futura</td></tr> +<tr class="helvetica"><td>Helvetica</td></tr> +<tr class="times"><td>Times</td></tr> +<tr class="courier"><td>Courier</td></tr> +<tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr> +<tr class="dejavusans"><td>DejaVu Sans</td></tr> +<tr class="freesans"><td>FreeSans</td></tr> +</table> + +</body> +</html> |