or: pointer; } div { color: #4a9ae1; } div:hover { text-decoration: underline; }';
        var style = document.createElement('style');
        style.appendChild(document.createTextNode(css));
        iframe.contentDocument.children[0].appendChild(style);

        // Fix size of SVG container
        svg = iframe.contentDocument.querySelector("svg");
        if (svg) {
          scale = parseInt(iframe.width) / parseInt(svg.getAttribute("width"));
          transform = "scale(" + scale + ")";
          gEle