svg-paint-rect-changes.html (749B)
1 <html class="reftest-wait"> 2 <script> 3 function doTest() { 4 document.getElementById("out").style.height = 30 + "px"; 5 document.getElementById("c").setAttribute("width", 20); 6 document.documentElement.removeAttribute("class"); 7 } 8 document.addEventListener("MozReftestInvalidate", doTest); 9 </script> 10 <div id=out style="overflow: hidden; height:40px"> 11 <!-- avoid letting the clip leak into the svg by separating it with 12 a transform --> 13 <div style="transform: rotate(2deg)"> 14 <div style="overflow: hidden; width: 40px;"> 15 <svg> 16 <rect x=0 y=0 width=100 height=100></rect> 17 <rect fill=red id=c x=10 y=10 width=1 height=20></rect> 18 </svg> 19 </div> 20 </div> 21 </div> 22 </html>