summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg')
-rw-r--r--testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg b/testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg
new file mode 100644
index 0000000000..04d8d3025e
--- /dev/null
+++ b/testing/web-platform/tests/svg/pservers/reftests/radialgradient-basic-002.svg
@@ -0,0 +1,53 @@
+<svg id="svg-root"
+ width="100%" height="100%" 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>Radial gradient: Basic three stop gradient with 'fr'.</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#RadialGradients"/>
+ <html:link rel="match" href="radialgradient-basic-002-ref.svg" />
+ </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>
+ <radialGradient id="RadialGradient1" gradientUnits="userSpaceOnUse" cx="120" cy="240" fx="120" fy="240" r="100" fr="50">
+ <stop style="stop-color:#0000ff" offset="0%"/>
+ <stop style="stop-color:#00ffff" offset="50%"/>
+ <stop style="stop-color:#ffff00" offset="100%"/>
+ </radialGradient>
+ <radialGradient id="RadialGradient2" gradientUnits="objectBoundingBox" cx="0.5" cy="0.5" rx="0.5" y2="0.5" r="0.5" fr="0.25">
+ <stop style="stop-color:#0000ff" offset="0%"/>
+ <stop style="stop-color:#00ffff" offset="50%"/>
+ <stop style="stop-color:#ffff00" offset="100%"/>
+ </radialGradient>
+ </defs>
+
+ <g id="test-body-content" font-size="16">
+ <rect x="20" y="140" width="200" height="200" style="fill:url(#RadialGradient1)" />
+ <rect x="260" y="140" width="200" height="200" style="fill:url(#RadialGradient2)" />
+ </g>
+
+</svg>