summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text/synthetic-bold-zero-width-01.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/text/synthetic-bold-zero-width-01.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/text/synthetic-bold-zero-width-01.html')
-rw-r--r--layout/reftests/text/synthetic-bold-zero-width-01.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/layout/reftests/text/synthetic-bold-zero-width-01.html b/layout/reftests/text/synthetic-bold-zero-width-01.html
new file mode 100644
index 0000000000..027b419eb4
--- /dev/null
+++ b/layout/reftests/text/synthetic-bold-zero-width-01.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<style>
+@font-face {
+ font-family: Fira;
+ src: url(../fonts/fira/FiraSansOT-Regular.otf);
+}
+body {
+ /* We want a font that only has a single weight, and supports 'x' and zero-width U+0301.
+ * The Apple Symbols and Segoe UI Symbol fonts appear to meet this requirement on macOS
+ * and Win10 respectively.
+ * If they're not available, we use a single face of Fira loaded via @font-face.
+ */
+ font: 24px Apple Symbols, Segoe UI Symbol, Fira;
+}
+.bold {
+ font-weight: bold;
+}
+span {
+ color: transparent;
+}
+</style>
+<body>
+<!-- any number of zero-width characters should not result in any extra space between the 'x' glyphs ... -->
+<div>
+ xx<br>
+ x<span>&#x301;</span>x<br>
+ x<span>&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+</div>
+<!-- ... even when synthetic bold is in effect -->
+<div class=bold>
+ xx<br>
+ x<span>&#x301;</span>x<br>
+ x<span>&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+ x<span>&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;&#x301;</span>x<br>
+</div>