]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - test/css/styles-at-end.svg
test/css: add some visually-verified test cases for our new features
[libsvgtiny.git] / test / css / styles-at-end.svg
diff --git a/test/css/styles-at-end.svg b/test/css/styles-at-end.svg
new file mode 100644 (file)
index 0000000..540bba0
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+Putting the <style> element at the end of the <svg> also works.
+-->
+<svg width="640"
+     height="480"
+     viewBox="0 0 640 480"
+     xmlns="http://www.w3.org/2000/svg"
+     xmlns:svg="http://www.w3.org/2000/svg">
+
+  <rect x="5"
+        y="5"
+        width="390"
+        height="470"
+        fill="red" />
+
+  <rect id="rect2"
+        x="320"
+        y="0"
+        width="320"
+        height="480"
+        fill="blue" />
+
+  <style>
+    * {
+      fill-opacity: 0;
+    }
+  </style>
+</svg>