summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg')
-rw-r--r--testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg223
1 files changed, 223 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg b/testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg
new file mode 100644
index 0000000000..8c3c219f18
--- /dev/null
+++ b/testing/web-platform/tests/svg/pservers/reftests/meshgradient-bicubic-001.svg
@@ -0,0 +1,223 @@
+<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: Coons vs. Bicubic.</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-bicubic-001-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="CheckerBoardCoons" x="20" y="140" gradientUnits="userSpaceOnUse">
+ <meshrow>
+ <meshpatch>
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ </meshgradient>
+ <meshgradient id="CheckerBoardBicubic" x="260" y="140" type="bicubic" gradientUnits="userSpaceOnUse">
+ <meshrow>
+ <meshpatch>
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 22.2222,0 44.4444,0 66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ <meshrow>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c 0,-22.2222 0,-44.4444 0,-66.6667" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#00ff00;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ <meshpatch>
+ <stop
+ path="c 0,22.2222 0,44.4444 0,66.6667" />
+ <stop
+ style="stop-color:#0000ff;stop-opacity:1"
+ path="c -22.2222,0 -44.4444,0 -66.6667,0" />
+ </meshpatch>
+ </meshrow>
+ </meshgradient>
+ </defs>
+
+ <g id="test-body-content">
+ <rect x="20" y="140" width="200" height="200" style="fill:url(#CheckerBoardCoons)" />
+ <rect x="260" y="140" width="200" height="200" style="fill:url(#CheckerBoardBicubic)" />
+ </g>
+
+</svg>