[lasem] tests: new primitive subregion extent test.



commit 4c965127666650c63db319fdb9ecaaef1374cd24
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Thu Oct 18 22:50:15 2012 +0200

    tests: new primitive subregion extent test.

 tests/data/svg/filter/primitive-subregion-ref.png |  Bin 0 -> 637 bytes
 tests/data/svg/filter/primitive-subregion.svg     |   19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/data/svg/filter/primitive-subregion-ref.png b/tests/data/svg/filter/primitive-subregion-ref.png
new file mode 100644
index 0000000..6c37063
Binary files /dev/null and b/tests/data/svg/filter/primitive-subregion-ref.png differ
diff --git a/tests/data/svg/filter/primitive-subregion.svg b/tests/data/svg/filter/primitive-subregion.svg
new file mode 100644
index 0000000..aaaa540
--- /dev/null
+++ b/tests/data/svg/filter/primitive-subregion.svg
@@ -0,0 +1,19 @@
+<!--
+-->
+
+<svg  xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; width="45" height="45">
+  <defs>
+    <filter id="flood" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="-50%" y="-50%" width="200%" height="200%">
+      <feFlood x="20%" y="20%" width="60%" height="60%" flood-color="blue"/>
+    </filter>
+    <g id="square">
+      <rect x="5" y="5" height="10" width="10" style="stroke:none; fill:none; filter:url(#flood);"/>
+      <path d="M7.5 2 L7.5 7 M2 7.5 L7 7.5 M12.5 13 L12.5 18 M13 12.5 L 18 12.5" stroke-width="1" stroke="black" fill="none" />
+    </g>
+  </defs>
+  <use xlink:href="#square" />
+  <use xlink:href="#square" transform="translate(20.5,0.5)"/>
+  <use xlink:href="#square" transform="translate(0.25,20.25)"/>
+  <use xlink:href="#square" transform="translate(29,29) rotate(45) translate(-10,-10)"/>
+</svg>
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]