3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
6 <html xmlns=
"http://www.w3.org/1999/xhtml">
8 <title>Testcase reference file dynamic svg creation
</title>
9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=438867 -->
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);
30 <hr style=
"clear: both;"/>