1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/dynamic-rect-04.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.10 +<head> 1.11 +<title>Testcase reference file dynamic svg creation</title> 1.12 +<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=438867 --> 1.13 +<script> 1.14 +function m() { 1.15 + var SVG_NS = "http://www.w3.org/2000/svg"; 1.16 + var svg = document.createElementNS(SVG_NS, 'svg'); 1.17 + svg.style.position = 'absolute'; 1.18 + svg.style.left = '0px'; 1.19 + svg.style.top = '0px'; 1.20 + svg.style.width = '100%'; 1.21 + svg.style.height = '100%'; 1.22 + document.body.appendChild(svg); 1.23 + 1.24 + var rect = document.createElementNS(SVG_NS, "rect"); 1.25 + rect.setAttribute('width', '100%'); 1.26 + rect.setAttribute('height', '100%'); 1.27 + rect.setAttribute('fill', 'lime'); 1.28 + svg.appendChild(rect); 1.29 +} 1.30 +</script> 1.31 +</head> 1.32 +<body onload="m();"> 1.33 +<hr style="clear: both;"/> 1.34 +</body> 1.35 +</html>