summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-face/local-1.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/font-face/local-1.html
parentInitial commit. (diff)
downloadfirefox-esr-upstream.tar.xz
firefox-esr-upstream.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/font-face/local-1.html')
-rw-r--r--layout/reftests/font-face/local-1.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/layout/reftests/font-face/local-1.html b/layout/reftests/font-face/local-1.html
new file mode 100644
index 0000000000..64e4500024
--- /dev/null
+++ b/layout/reftests/font-face/local-1.html
@@ -0,0 +1,63 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta http-equiv="Content-Style-Type" content="text/css">
+ <title>test src: local()</title>
+ <!--
+
+ Most systems are expected to have either Linotype's Helvetica or a
+ substitute. These are needed for PostScript or PDF support. MS
+ systems will have Monotype's Arial installed. Systems with
+ ghostscript will normally have Nimbus Sans L. Linux systems without
+ ghostscript may have Adobe's bitmap Helvetica for X11 or Ascender /
+ Red Hat's Liberation Sans.
+
+ The result will be compared with fonts chosen through font-family.
+ Platform aliases (on Windows and Linux) will map family names from
+ one substitute to another, but similar aliasing does not happen with
+ face names in local(). Therefore, all Helvetica substitute fonts
+ are included in the @font-face rules.
+
+ Full names are specified for all fonts for MS Windows and Linux, and
+ PostScript names are included for Mac for all fonts up to
+ Helvetica, which is expected to be on every Mac.
+
+ The generic fallback is chosen to be serif, which is not expected to
+ be the same as any of the local (sans-serif) faces in the @font-face
+ rules, so that it makes failure to reference the local faces more
+ obvious.
+
+ -->
+ <style type="text/css">
+ @font-face {
+ font-family: "Local";
+ src: local(Nimbus Sans L), local(NimbusSansL-Regu),
+ local(Helvetica), local(Bitstream Vera Sans),
+ local(Arial), local(Liberation Sans), local(SwissA),
+ local(Fira Sans OT), local(Fira Sans),
+ local(Droid Sans), local(Roboto);
+ font-weight: 100;
+ }
+ @font-face {
+ font-family: "Local";
+ src: local(Nimbus Sans L Bold), local(NimbusSansL-Bold),
+ local(Helvetica Bold), local(Helvetica-Bold),
+ local(Bitstream Vera Sans Bold),
+ local(Arial Bold), local(Liberation Sans Bold), local(SwissA Bold),
+ local(Fira Sans OT Bold), local(Fira Sans Bold),
+ local(Droid Sans Bold), local(Roboto Bold);
+ font-weight: normal;
+ }
+ body { font-family: Local, serif }
+ </style>
+</head>
+<body>
+ <p style="font-weight: 100">
+ The quick brown fox jumped over the lazy dog
+ </p>
+ <p style="font-weight: normal;">
+ The quick brown fox jumped over the lazy dog
+ </p>
+</body>
+</html>