1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/path-04.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"> 1.9 + 1.10 + <title>Test that selectors detect changes to the 'd' attribute</title> 1.11 + 1.12 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=610990 --> 1.13 + 1.14 + <style> 1.15 + 1.16 +path[d="M0,0 V100 H100 V0 Z"] { 1.17 + fill: lime; 1.18 +} 1.19 + 1.20 + </style> 1.21 + <script><![CDATA[ 1.22 + 1.23 +function run() 1.24 +{ 1.25 + document.getElementById('path').setAttribute('d', 'M0,0 V100 H100 V0 Z'); 1.26 + document.documentElement.removeAttribute('class'); 1.27 +} 1.28 + 1.29 +window.addEventListener('MozReftestInvalidate', run, false); 1.30 + 1.31 + ]]></script> 1.32 + 1.33 + <rect width="100%" height="100%" fill="lime"/> 1.34 + <path id="path" fill="red" d="M0,0 H100 V100 H0 Z"/> 1.35 + 1.36 +</svg>