path-04.svg 755 B

12345678910111213141516171819202122232425262728293031323334
  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 that selectors detect changes to the 'd' attribute</title>
  7. <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=610990 -->
  8. <style>
  9. path[d="M0,0 V100 H100 V0 Z"] {
  10. fill: lime;
  11. }
  12. </style>
  13. <script><![CDATA[
  14. function run()
  15. {
  16. document.getElementById('path').setAttribute('d', 'M0,0 V100 H100 V0 Z');
  17. document.documentElement.removeAttribute('class');
  18. }
  19. window.addEventListener('MozReftestInvalidate', run, false);
  20. ]]></script>
  21. <rect width="100%" height="100%" fill="lime"/>
  22. <path id="path" fill="red" d="M0,0 H100 V100 H0 Z"/>
  23. </svg>