summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/struct/scripted/svg-getIntersectionList-002.svg
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/svg/struct/scripted/svg-getIntersectionList-002.svg
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/svg/struct/scripted/svg-getIntersectionList-002.svg')
-rw-r--r--testing/web-platform/tests/svg/struct/scripted/svg-getIntersectionList-002.svg23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/struct/scripted/svg-getIntersectionList-002.svg b/testing/web-platform/tests/svg/struct/scripted/svg-getIntersectionList-002.svg
new file mode 100644
index 0000000000..c2c1f8e425
--- /dev/null
+++ b/testing/web-platform/tests/svg/struct/scripted/svg-getIntersectionList-002.svg
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="root" xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
+ <h:script src="/resources/testharness.js"/>
+ <h:script src="/resources/testharnessreport.js"/>
+ <script>
+ const test = async_test('getIntersectionList() on clipped element');
+ window.onload = test.step_func_done(() => {
+ const testSVG = document.getElementById('root');
+ const r = testSVG.createSVGRect();
+ r.x = 0;
+ r.y = 0;
+ r.width = 100;
+ r.height = 100;
+
+ assert_equals(testSVG.getIntersectionList(r, testSVG).length, 1);
+ });
+ </script>
+ <rect x="0" y="0" width="200" height="200"/>
+ <clipPath id="MyClip">
+ <rect y="100" width="200" height="100"/>
+ </clipPath>
+ <rect x="0" y="0" width="200" height="200" clip-path="url(#MyClip)" fill="green"/>
+</svg>