summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.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/writing-mode/1117210-1-vertical-baseline-snap.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.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/writing-mode/1117210-1-vertical-baseline-snap.html')
-rw-r--r--layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html b/layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html
new file mode 100644
index 0000000000..88eca655e0
--- /dev/null
+++ b/layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<style>
+@font-face {
+ font-family: ahem;
+ src: url(../fonts/Ahem.ttf);
+}
+
+div {
+ font-family: ahem;
+ font-size: 10px;
+}
+
+.lr {
+ writing-mode: vertical-lr;
+ text-orientation: sideways-right;
+ height: 40px;
+}
+.rl {
+ writing-mode: vertical-rl;
+ text-orientation: sideways-right;
+ height: 40px;
+}
+
+.a { position: relative; top: 10px; left: 10px; }
+.b { position: relative; top: 10px; left: 10px; }
+.c { position: relative; top: 10px; left: 10px; }
+.d { position: relative; top: 10px; left: 10px; }
+.e { position: relative; top: 10px; left: 10px; }
+
+/* resolution-dependent offsets: we want CSS px values that will correspond
+ to less that 0.5 device pixels either side of where 10px falls, so they
+ all snap to the same device-pixel value */
+
+/* XXX For higher-than-retina density, we punt; the test becomes a no-op */
+
+@media (max-resolution: 2dppx) {
+ .a { left: 9.8px; }
+ .b { left: 9.9px; }
+ .c { left: 10px; }
+ .d { left: 10.1px; }
+ .e { left: 10.2px; }
+}
+
+@media (max-resolution: 1.5dppx) {
+ .a { left: 9.7px; }
+ .b { left: 9.85px; }
+ .c { left: 10px; }
+ .d { left: 10.15px; }
+ .e { left: 10.3px; }
+}
+
+@media (max-resolution: 1dppx) {
+ .a { left: 9.6px; }
+ .b { left: 9.8px; }
+ .c { left: 10px; }
+ .d { left: 10.2px; }
+ .e { left: 10.4px; }
+}
+
+</style>
+</head>
+
+<body>
+<div class="lr a">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="lr b">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="lr c">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="lr d">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="lr e">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+
+<br>
+
+<div class="rl a">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="rl b">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="rl c">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="rl d">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+<div class="rl e">abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc<br>abc</div>
+
+</body>
+</html>