summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-size-zoom-repeat-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/backgrounds/background-size-zoom-repeat-ref.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/backgrounds/background-size-zoom-repeat-ref.html')
-rw-r--r--layout/reftests/backgrounds/background-size-zoom-repeat-ref.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/layout/reftests/backgrounds/background-size-zoom-repeat-ref.html b/layout/reftests/backgrounds/background-size-zoom-repeat-ref.html
new file mode 100644
index 0000000000..1a5a1fd0af
--- /dev/null
+++ b/layout/reftests/backgrounds/background-size-zoom-repeat-ref.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>background-size: 64px 40px; repeat, zoom reference</title>
+ <style type="text/css">
+html
+{
+ margin: 0;
+ padding: 0;
+}
+body
+{
+ margin: 0;
+ padding: 20px;
+}
+#outer
+{
+ width: 512px;
+ height: 320px;
+}
+ /*
+ * 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.
+ */
+
+/* Aargh, sampling artifacts, we hates them, precioussss. */
+#outer > div
+{
+ display: inline-block;
+ width: 56px;
+ height: 320px;
+}
+.blue
+{
+ background: url(blue-16x20.png);
+ border-right: 8px solid black;
+}
+.green
+{
+ background: url(green-16x20.png);
+ border-left: 8px 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>