layout/reftests/svg/dynamic-rect-04.xhtml

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <?xml version="1.0"?>
     2 <!--
     3      Any copyright is dedicated to the Public Domain.
     4      http://creativecommons.org/publicdomain/zero/1.0/
     5 -->
     6 <html xmlns="http://www.w3.org/1999/xhtml">
     7 <head>
     8 <title>Testcase reference file dynamic svg creation</title>
     9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=438867 -->
    10 <script>
    11 function m() {
    12     var SVG_NS = "http://www.w3.org/2000/svg";
    13     var svg = document.createElementNS(SVG_NS, 'svg');
    14     svg.style.position = 'absolute';
    15     svg.style.left = '0px';
    16     svg.style.top = '0px';
    17     svg.style.width = '100%';
    18     svg.style.height = '100%';
    19     document.body.appendChild(svg);
    21     var rect = document.createElementNS(SVG_NS, "rect");
    22     rect.setAttribute('width', '100%');
    23     rect.setAttribute('height', '100%');
    24     rect.setAttribute('fill', 'lime');
    25     svg.appendChild(rect);
    26 }
    27 </script>
    28 </head>
    29 <body onload="m();">
    30 <hr style="clear: both;"/>
    31 </body>
    32 </html>

mercurial