summaryrefslogtreecommitdiffstats
path: root/layout/reftests/pixel-rounding/viewport-units-rounding-1-frame.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/pixel-rounding/viewport-units-rounding-1-frame.html
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.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/pixel-rounding/viewport-units-rounding-1-frame.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/layout/reftests/pixel-rounding/viewport-units-rounding-1-frame.html b/layout/reftests/pixel-rounding/viewport-units-rounding-1-frame.html
new file mode 100644
index 0000000000..955b873dd6
--- /dev/null
+++ b/layout/reftests/pixel-rounding/viewport-units-rounding-1-frame.html
@@ -0,0 +1,51 @@
+<!DOCTYPE HTML>
+<title>subframe for test of viewport units rounding</title>
+<meta charset="UTF-8">
+<style>
+
+html, body { margin: 0; padding: 0; border: none }
+
+body > div {
+ background: red; /* should never show */
+ overflow: hidden; /* block formatting context */
+}
+
+body > div > div {
+ float: left;
+ height: 10px;
+}
+
+body > div.w25 > div { width: 25vw; }
+
+</style>
+
+<div class="w25">
+ <div style="background: fuchsia"></div>
+ <div style="background: aqua"></div>
+ <div style="background: silver"></div>
+ <div style="background: yellow"></div>
+</div>
+
+<!--
+ Really, though, anything that is a multiple of 5vw will always
+ produce a round number of appunits when starting from an integer
+ number of pixels, since 5vw is 1/20 of the viewport.
+
+ So, more interesting:
+-->
+
+<div>
+ <div style="width: 24vw; background: fuchsia"></div>
+ <div style="width: 24vw; background: aqua"></div>
+ <div style="width: 24vw; background: silver"></div>
+ <div style="width: 24vw; background: yellow"></div>
+ <div style="width: 4vw; background: gray"></div>
+</div>
+
+<div>
+ <div style="width: 21vw; background: fuchsia"></div>
+ <div style="width: 21vw; background: aqua"></div>
+ <div style="width: 21vw; background: silver"></div>
+ <div style="width: 21vw; background: yellow"></div>
+ <div style="width: 16vw; background: gray"></div>
+</div>