summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-size-zoom-repeat.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/backgrounds/background-size-zoom-repeat.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/backgrounds/background-size-zoom-repeat.html')
-rw-r--r--layout/reftests/backgrounds/background-size-zoom-repeat.html61
1 files changed, 61 insertions, 0 deletions
diff --git a/layout/reftests/backgrounds/background-size-zoom-repeat.html b/layout/reftests/backgrounds/background-size-zoom-repeat.html
new file mode 100644
index 0000000000..97df2b53f2
--- /dev/null
+++ b/layout/reftests/backgrounds/background-size-zoom-repeat.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html reftest-zoom="2">
+<head>
+ <title>background-size: 64px 40px; repeat, zoom</title>
+ <style type="text/css">
+html
+{
+ margin: 0;
+ padding: 0;
+}
+body
+{
+ margin: 0;
+ padding: 10px;
+}
+#outer
+{
+ /*
+ * PRE-ZOOM:
+ * 2x size the image, then tile it 4x4 across the div; sampling artifacts at
+ * 32px horizontal offset, then every 64px for the full height of the div.
+ * POST-ZOOM:
+ * 4x size the image, then tile it 4x4 across the div; sampling artifacts at
+ * 64px horizontal offset, then every 128px for the full height of the div.
+ */
+ width: 256px;
+ height: 160px;
+ background-image: url(blue-16x20-green-16x20.png);
+ background-repeat: repeat;
+ background-size: 64px 40px;
+}
+
+/* Aargh, sampling artifacts, we hates them, precioussss. */
+#outer > div
+{
+ display: inline-block;
+ width: 28px;
+ height: 160px;
+}
+.blue
+{
+ border-right: 4px solid black;
+}
+.green
+{
+ border-left: 4px solid black;
+}
+ </style>
+</head>
+<body>
+<div id="outer"><div
+ class="blue"></div><div
+ class="green"></div><div
+ class="blue"></div><div
+ class="green"></div><div
+ class="blue"></div><div
+ class="green"></div><div
+ class="blue"></div><div
+ class="green"></div></div>
+</body>
+</html>