dynamic-stroke-01.svg 695 B

12345678910111213141516171819202122
  1. <!--
  2. Any copyright is dedicated to the Public Domain.
  3. http://creativecommons.org/publicdomain/zero/1.0/
  4. -->
  5. <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
  6. <title>Test for changing stroke from none to a solid color value</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=939942 -->
  8. <rect width="100%" height="100%" fill="red"/>
  9. <rect id="r" width="100%" height="50%" y="25%" stroke="none" stroke-width="75%" fill="lime"/>
  10. <script>
  11. window.addEventListener("MozReftestInvalidate", function() {
  12. document.getElementById("r").style.stroke = "lime";
  13. document.documentElement.removeAttribute("class");
  14. }, false);
  15. </script>
  16. </svg>