currentScale-change-repaint.html (502B)
1 <!doctype HTML> 2 <meta charset="utf-8"> 3 <title>Testcase for changing currentScale on SVG embedded in HTML</title> 4 <link rel="help" href="https://www.w3.org/TR/SVG/struct.html#__svg__SVGSVGElement__currentScale"> 5 <link rel="match" href="reference/green-100x100.html"> 6 <script> 7 function go() { 8 const mySVG = document.getElementById("mySVG"); 9 mySVG.currentScale = 0.5; 10 } 11 </script> 12 <body onload="go()"> 13 <svg id="mySVG"> 14 <rect width="100" height="100" fill="green"></rect> 15 </svg> 16 </body>