summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html')
-rw-r--r--testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html
new file mode 100644
index 0000000000..a63f4c8aa2
--- /dev/null
+++ b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-foreignobject-non-zero-xy.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<title>CSS Masking: clip-path on a foreignObject with non-zero 'x' and 'y' render correctly</title>
+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1218383">
+<link rel="match" href="reference/green-100x100.html">
+<svg viewBox="25 50 200 100" width="200">
+ <rect x="25" y="50" width="100" height="100" fill="red"/>
+ <clipPath id="r">
+ <rect x="25" y="50" width="100" height="100"/>
+ </clipPath>
+ <foreignObject x="25" y="50" width="150" height="100" clip-path="url(#r)">
+ <div style="width: 100px; height: 100px; background-color: green; border-right: 50px solid red"></div>
+ </foreignObject>
+</svg>