add simple filter test
authorErik Dahlström <ed@opera.com>
Sat, 09 Feb 2013 12:12:46 +1100
changeset 28 ffe1f528f133
parent 27 5001557a9546
child 29 fe8d7e506335
add simple filter test
contributors/ed/incoming/.empty
contributors/ed/submitted/filters-saturate-01-ref.svg
contributors/ed/submitted/filters-saturate-01.svg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/ed/submitted/filters-saturate-01-ref.svg	Sat Feb 09 12:12:46 2013 +1100
@@ -0,0 +1,40 @@
+<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">
+
+  <g id="testmeta">
+    <title>SVG Filters: saturate</title>
+    <link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <link rel="author"
+          title="Erik Dahlström"
+          href="mailto:ed@opera.com"/>
+    <link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+    <link rel="help"
+          href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#saturateltnumbergt-ltpercentagegt"/>
+    <link rel="match"  href="filters-saturate-01-ref.svg" />
+    <metadata class="flags">namespace svg</metadata>
+    <desc class="assert">
+      A saturate value of 0% means the output is completely un-saturated.
+      The CSS filter shorthand must match the svg markup equivalent.
+    </desc>
+  </g>
+
+  <g id="test-body-content" font-size="16">
+		<defs>
+			<filter id="saturatefilter" color-interpolation-filters="sRGB">
+				<feColorMatrix type="saturate" values="0"/>
+			</filter>
+		</defs>
+
+    <rect x="210" y="100" width="60" height="60" rx="10" fill="red" filter="url(#saturatefilter)" />
+    <text x="240" y="200" fill="red" text-anchor="middle" filter="url(#saturatefilter)">This text and the rect above should be gray.</text>
+  </g>
+
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contributors/ed/submitted/filters-saturate-01.svg	Sat Feb 09 12:12:46 2013 +1100
@@ -0,0 +1,34 @@
+<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">
+
+  <g id="testmeta">
+    <title>SVG Filters: saturate</title>
+    <link rel="copyright"
+          href="http://www.w3.org/Graphics/SVG/Test/Copyright"/>
+    <link rel="license"
+          href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license.html"/>
+    <link rel="author"
+          title="Erik Dahlström"
+          href="mailto:ed@opera.com"/>
+    <link rel="reviewer"
+          title="NAME_OF_REVIEWER"
+          href="mailto:EMAIL OR http://CONTACT_PAGE" />
+          <!-- YYYY-MM-DD -->
+    <link rel="help"
+          href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#saturateltnumbergt-ltpercentagegt"/>
+    <link rel="match"  href="filters-saturate-01-ref.svg" />
+    <metadata class="flags">namespace svg</metadata>
+    <desc class="assert">
+      A saturate value of 0% means the output is completely un-saturated.
+      The CSS filter shorthand must match the svg markup equivalent.
+    </desc>
+  </g>
+
+  <g id="test-body-content" font-size="16">
+    <rect x="210" y="100" width="60" height="60" rx="10" fill="red" filter="saturate(0%)" />
+    <text x="240" y="200" fill="red" text-anchor="middle" filter="saturate(0%)">This text and the rect above should be gray.</text>
+  </g>
+
+</svg>