summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-tiling-zoom-1.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /layout/reftests/backgrounds/background-tiling-zoom-1.html
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/backgrounds/background-tiling-zoom-1.html')
-rw-r--r--layout/reftests/backgrounds/background-tiling-zoom-1.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/layout/reftests/backgrounds/background-tiling-zoom-1.html b/layout/reftests/backgrounds/background-tiling-zoom-1.html
new file mode 100644
index 0000000000..e72af03e14
--- /dev/null
+++ b/layout/reftests/backgrounds/background-tiling-zoom-1.html
@@ -0,0 +1,82 @@
+<!DOCTYPE HTML>
+<!-- Any copyright is dedicated to the Public Domain.
+ - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<html reftest-zoom="1.3">
+<head>
+<title>Pixel rounding testcase</title>
+<style type="text/css">
+
+ html, body {
+ margin: 0;
+ border: none;
+ padding: 0;
+ }
+
+ div {
+ border: 1px solid black;
+ margin: 5px;
+ position: absolute
+ }
+
+ /* For these tests we use images containing two colors, even though only one
+ color will be visible, to avoid special single-color-image code paths. */
+ div.horizontal {
+ background-image: url(lime-and-blue-1x25.png);
+ height: 10px;
+ left: 0px;
+ }
+
+ div.vertical {
+ background-image: url(lime-and-blue-25x1.png);
+ top: 120px;
+ width: 10px;
+ }
+
+ /* For these tests we use images containing only one color to ensure that we
+ hit the special single-color-image code paths. */
+ div.horizontal-single-color {
+ background-image: url(lime-1x25.png);
+ height: 10px;
+ left: 40px;
+ }
+
+ div.vertical-single-color {
+ background-image: url(lime-25x1.png);
+ top: 160px;
+ width: 10px;
+ }
+
+</style>
+</head>
+<body>
+
+<div class="horizontal" style="top: 0px; width: 30px"></div>
+<div class="horizontal" style="top: 20px; width: 30.1px"></div>
+<div class="horizontal" style="top: 40px; width: 30.3px"></div>
+<div class="horizontal" style="top: 60px; width: 30.5px"></div>
+<div class="horizontal" style="top: 80px; width: 30.7px"></div>
+<div class="horizontal" style="top: 100px; width: 30.9px"></div>
+
+<div class="horizontal-single-color" style="top: 0px; width: 30px"></div>
+<div class="horizontal-single-color" style="top: 20px; width: 30.1px"></div>
+<div class="horizontal-single-color" style="top: 40px; width: 30.3px"></div>
+<div class="horizontal-single-color" style="top: 60px; width: 30.5px"></div>
+<div class="horizontal-single-color" style="top: 80px; width: 30.7px"></div>
+<div class="horizontal-single-color" style="top: 100px; width: 30.9px"></div>
+
+<div class="vertical" style="left: 0px; height: 30px"></div>
+<div class="vertical" style="left: 20px; height: 30.1px"></div>
+<div class="vertical" style="left: 40px; height: 30.3px"></div>
+<div class="vertical" style="left: 60px; height: 30.5px"></div>
+<div class="vertical" style="left: 80px; height: 30.7px"></div>
+<div class="vertical" style="left: 100px; height: 30.9px"></div>
+
+<div class="vertical-single-color" style="left: 0px; height: 30px"></div>
+<div class="vertical-single-color" style="left: 20px; height: 30.1px"></div>
+<div class="vertical-single-color" style="left: 40px; height: 30.3px"></div>
+<div class="vertical-single-color" style="left: 60px; height: 30.5px"></div>
+<div class="vertical-single-color" style="left: 80px; height: 30.7px"></div>
+<div class="vertical-single-color" style="left: 100px; height: 30.9px"></div>
+
+</body>
+</html>