summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/pservers/reftests/meshgradient-basic-004.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/pservers/reftests/meshgradient-basic-004.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/pservers/reftests/meshgradient-basic-004.svg')
-rw-r--r--testing/web-platform/tests/svg/pservers/reftests/meshgradient-basic-004.svg103
1 files changed, 103 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/pservers/reftests/meshgradient-basic-004.svg b/testing/web-platform/tests/svg/pservers/reftests/meshgradient-basic-004.svg
new file mode 100644
index 0000000000..c7e7501993
--- /dev/null
+++ b/testing/web-platform/tests/svg/pservers/reftests/meshgradient-basic-004.svg
@@ -0,0 +1,103 @@
+<svg id="svg-root"
+ width="480" height="360" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Mesh gradient: Simple 2x2 patch mesh (objectBoundingBox).</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="http://tavmjong.free.fr"/>
+ <html:link rel="help"
+ href="https://www.w3.org/TR/SVG2/pservers.html#MeshGradients"/>
+ <html:link rel="match" href="meshgradient-basic-004-ref.png" />
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("../fonts/FreeSans.woff") format("woff");
+ }
+ text {
+ font-family: FreeSans, sans-serif;
+ text-anchor: middle;
+ fill: black;
+ }
+ #title {
+ font-size: 24px;
+ }
+ .label {
+ font-size: 18px;
+ }
+ </style>
+
+ <defs>
+ <meshgradient id="LinearMesh" x="0" y="0" gradientUnits="objectBoundingBox">
+ <meshrow>
+ <meshpatch>
+ <stop style="stop-color:#0000ff" path="l 0.5,0" />
+ <stop style="stop-color:#00ff00" path="l 0,0.5" />
+ <stop style="stop-color:#ffff00" path="l -0.5,0" />
+ <stop style="stop-color:#00ff00" path="l 0,-0.5" />
+ </meshpatch>
+ <meshpatch>
+ <stop path="l 0.5,0" />
+ <stop style="stop-color:#ffff00" path="l 0,0.5" />
+ <stop style="stop-color:#0000ff" path="l -0.5,0" />
+ <!-- No final stop -->
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <!-- No initial stop -->
+ <stop path="l 0,0.5" />
+ <stop style="stop-color:#0000ff" path="l -0.5,0" />
+ <stop style="stop-color:#ffff00" path="l 0,-0.5" />
+ </meshpatch>
+ <meshpatch>
+ <!-- No initial stop -->
+ <stop path="l 0,0.5" />
+ <stop style="stop-color:#00ff00" path="l -0.5,0" />
+ <!-- No final stop -->
+ </meshpatch>
+ </meshrow>
+ </meshgradient>
+ <meshgradient id="BezierMesh" x="0" y="0" gradientUnits="objectBoundingBox">
+ <meshrow>
+ <meshpatch>
+ <stop style="stop-color:#0000ff" path="c 0.1667,0 0.3333,0 0.5,0" />
+ <stop style="stop-color:#00ff00" path="c 0,0.1667 0,0.3333 0,0.5" />
+ <stop style="stop-color:#ffff00" path="c -0.1667,0 -0.3333,0 -0.5,0" />
+ <stop style="stop-color:#00ff00" path="c 0,-0.1667 0,-0.3333 0,-0.5" />
+ </meshpatch>
+ <meshpatch>
+ <stop path="c 0.1667,0 0.3333,0 0.5,0" />
+ <stop style="stop-color:#ffff00" path="c 0,0.1667 0,0.3333 0,0.5" />
+ <stop style="stop-color:#0000ff" path="c -0.1667,0 -0.3333,0 -0.5,0" />
+ <!-- No final stop -->
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <!-- No initial stop -->
+ <stop path="c 0,0.1667 0,0.3333 0,0.5" />
+ <stop style="stop-color:#0000ff" path="c -0.1667,0 -0.3333,0 -0.5,0" />
+ <stop style="stop-color:#ffff00" path="c 0,-0.1667 0,-0.3333 0,-0.5" />
+ </meshpatch>
+ <meshpatch>
+ <!-- No initial stop -->
+ <stop path="c 0,0.1667 0,0.3333 0,0.5" />
+ <stop style="stop-color:#00ff00" path="c -0.1667,0 -0.3333,0 -0.5,0" />
+ <!-- No final stop -->
+ </meshpatch>
+ </meshrow>
+ </meshgradient>
+ </defs>
+
+ <g id="test-body-content">
+ <rect x="20" y="140" width="200" height="200" style="fill:url(#LinearMesh)" />
+ <rect x="260" y="140" width="200" height="200" style="fill:url(#BezierMesh)" />
+ </g>
+
+</svg>