dynamic-conditions-01.svg 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/publicdomain/zero/1.0/
  5. -->
  6. <svg version="1.1" xmlns="http://www.w3.org/2000/svg" onload="m();">
  7. <title>Testcase for dynamic conditions</title>
  8. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=409383 -->
  9. <script>
  10. function m() {
  11. var svgns = "http://www.w3.org/2000/svg";
  12. var rect1 = document.getElementById("rect1");
  13. rect1.setAttribute("systemLanguage", "foo");
  14. var rect2 = document.getElementById("rect2");
  15. rect2.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Gradient");
  16. var rect3 = document.getElementById("rect3");
  17. rect3.setAttribute("requiredExtensions", "foo");
  18. }
  19. </script>
  20. <rect width="100%" height="100%" fill="lime"/>
  21. <rect id="rect1" x="50" y="100" width="50" height="50" fill="red"/>
  22. <rect x="200" y="100" width="50" height="50" fill="red"/>
  23. <rect id="rect2" x="200" y="100" width="50" height="50" fill="lime"/>
  24. <rect id="rect3" x="50" y="200" width="50" height="50" fill="red"/>
  25. </svg>