From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel.baumann@progress-linux.org>
Date: Sun, 7 Apr 2024 21:33:14 +0200
Subject: Adding upstream version 115.7.0esr.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
---
 .../background-image-tiled.https.html              | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 testing/web-platform/tests/css/css-paint-api/background-image-tiled.https.html

(limited to 'testing/web-platform/tests/css/css-paint-api/background-image-tiled.https.html')

diff --git a/testing/web-platform/tests/css/css-paint-api/background-image-tiled.https.html b/testing/web-platform/tests/css/css-paint-api/background-image-tiled.https.html
new file mode 100644
index 0000000000..11647c9228
--- /dev/null
+++ b/testing/web-platform/tests/css/css-paint-api/background-image-tiled.https.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="help" href="https://drafts.css-houdini.org/css-paint-api/">
+<link rel="match" href="background-image-tiled-ref.html">
+<style>
+    div {
+        display: inline-block;
+        width: 100px;
+        height: 100px;
+    }
+
+    #one {
+        background:
+            paint(ellipse) top left/50% 50% repeat-x,
+            paint(ellipse) bottom left/100% 50% no-repeat;
+    }
+
+    #two {
+        background:
+            paint(ellipse) top left/50% 20% repeat-y,
+            paint(ellipse) center right/50% 50% no-repeat;
+    }
+</style>
+<script src="/common/reftest-wait.js"></script>
+<script src="/common/worklet-reftest.js"></script>
+<body>
+<div id="one"></div>
+<div id="two"></div>
+
+<script id="code" type="text/worklet">
+registerPaint('ellipse', class {
+    paint(ctx, geom) {
+        ctx.fillStyle = 'green';
+        ctx.beginPath();
+        ctx.rect(0, 0, geom.width, geom.height);
+        ctx.fill();
+    }
+});
+</script>
+
+<script>
+    importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
+</script>
+</body>
+</html>
-- 
cgit v1.2.3