summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg')
-rw-r--r--testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg b/testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg
new file mode 100644
index 0000000000..aa8e5ba7e1
--- /dev/null
+++ b/testing/web-platform/tests/css/css-masking/clip-path-svg-content/clip-path-precision-001.svg
@@ -0,0 +1,44 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+<g id="testmeta">
+ <title>CSS Masking: clipPath precision</title>
+ <html:link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"/>
+ <html:link rel="help" href="http://www.w3.org/TR/css-masking-1/#svg-clipping-paths"/>
+ <html:link rel="help" href="http://www.w3.org/TR/css-masking-1/#ClipPathElement"/>
+ <html:link rel="help" href="http://www.w3.org/TR/css-masking-1/#svg-masks"/>
+ <html:link rel="help" href="http://www.w3.org/TR/css-masking-1/#MaskElement"/>
+ <html:link rel="match" href="reference/clip-path-precision-001-ref.svg" />
+ <metadata class="flags">svg</metadata>
+ <desc class="assert">Various comma values should no influence the precision
+ of the clipPath element. The test should not show any red outlines
+ around the boxes.</desc>
+</g>
+<defs>
+ <g id="paths">
+ <path d="M10 10 h20 v20 h-20 v-20 m1 1 v18 h18 v-18 h-18"/>
+ <rect x="19" y="19" width="2" height="2" />
+ <rect x="5.51" y="0.51" width="2" height="32.3" fill="white"/>
+ <rect x="35.4" y="0.51" width="2" height="32.3" fill="white"/>
+ </g>
+</defs>
+<mask id="mask">
+<use xlink:href="#paths" fill="white" x="60" />
+</mask>
+
+<clipPath id="clipper">
+ <path d="M40 10 h20 v20 h-20 v-20 m1 1 v18 h18 v-18 h-18"/>
+ <rect x="49" y="19" width="2" height="2" />
+ <rect x="35.51" y="0.51" width="2" height="32.3" />
+ <rect x="65.4" y="0.51" width="2" height="32.3" />
+</clipPath>
+
+<use xlink:href="#paths" fill="green" />
+<g clip-path="url(#clipper)">
+ <rect fill="red" x="38" y="8" width="24" height="24" />
+ <use xlink:href="#paths" fill="green" x="30" />
+</g>
+<g mask="url(#mask)">
+ <rect fill="red" x="68" y="8" width="24" height="24" />
+ <use xlink:href="#paths" fill="green" x="60" />
+</g>
+</svg>