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