layout/reftests/svg/import-svg-01.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/import-svg-01.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<html class="reftest-wait">
     1.5 +<head>
     1.6 +<script>
     1.7 +function setup() {
     1.8 + var data =
     1.9 + '<svg xmlns="http://www.w3.org/2000/svg" viewBox="-50 -100 50 100" width="100%" height="100%">' +
    1.10 + '    <rect transform="rotate(180,0,0)" fill="red" x="-50" y="-50" width="100" height="100" />'+
    1.11 + '    <rect fill="lime" x="-55" y="-55" width="110" height="110" />'+
    1.12 + '</svg>';
    1.13 + var drawing = document.getElementById("drawing");
    1.14 + var parser = new DOMParser();
    1.15 + var svg1 = document.importNode(parser.parseFromString(data, "text/xml").documentElement, true);
    1.16 + drawing.appendChild(svg1);
    1.17 + document.documentElement.className = "";
    1.18 +}
    1.19 +</script>
    1.20 +</head>
    1.21 +<body style="background-color: lime;" onload="setup()">
    1.22 +<div id="drawing">
    1.23 +</div>
    1.24 +</body>
    1.25 +</html>

mercurial