summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/writing-mode/1117210-1-vertical-baseline-snap.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
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 000000000..88eca655e
--- /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>