sform-origin"] = "0 0";
          gElement.style["-webkit-transform-origin"] = "0 0";

          iframe.height = svg.height.baseVal.value * scale;
          iframe.scrolling = "no";
        }

        // Fix links in embedded SVG files, used to navigate between dependencies
        Array.prototype.slice.call(iframe.contentDocument.querySelectorAll("a")).forEach(function(a) {
          if (a.getAttribute("xlink:href")) {
            a.setAttribute("xlink:href", window.location.href.split("#")[0] + a.getAttri