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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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