summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg')
-rw-r--r--testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg36
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg b/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg
new file mode 100644
index 0000000000..95bd2740fa
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg
@@ -0,0 +1,36 @@
+<svg id="svg-root" viewBox="0 0 800 600"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Paint: 'context-fill' for markers with gradient</title>
+ <html:link rel="author"
+ title="Stefan Zager"
+ href="mailto:szager@chromium.org"/>
+ <html:link rel="help"
+ href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/>
+ <html:link rel="match" href="paint-context-006-ref.svg" />
+ </g>
+
+ <defs>
+ <linearGradient id="lg">
+ <stop offset="0" stop-color="red"/>
+ <stop offset="1" stop-color="blue"/>
+ </linearGradient>
+
+ <marker id="inner-marker" refX="50" refY="20" markerWidth="100" markerHeight="50">
+ <rect width="100" height="50" fill="context-fill"/>
+ </marker>
+
+ <marker id="marker" refX="50" refY="340" markerWidth="100" markerHeight="400" orient="0.25turn">
+ <g fill="context-fill">
+ <rect y="40" width="100" height="360"/>
+ <text x="30" y="200" style="font-size:96px" stroke="black" rotate="-45">A</text>
+ <path d="M 50 40 v -20" marker-end="url(#inner-marker)"/>
+ </g>
+ </marker>
+ </defs>
+
+ <path id="test-body-content" fill="url(#lg)"
+ d="M 150 125 h 540 v 400 h -540 Z"
+ marker-start="url(#marker)"/>
+</svg>