layout/reftests/bugs/366616-1.xul

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <?xml version="1.0"?>
michael@0 2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
michael@0 3 <window id="test-canvas" title="Canvas in XUL test"
michael@0 4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
michael@0 5 xmlns:html="http://www.w3.org/1999/xhtml" onload="workWithCanvas();">
michael@0 6 <script type="text/javascript">
michael@0 7 function workWithCanvas()
michael@0 8 {
michael@0 9 var c = document.getElementById("canvas");
michael@0 10 var ctx = c.getContext("2d");
michael@0 11 ctx.fillStyle = "#ff0000";
michael@0 12 ctx.fillRect(0, 0, 100, 100);
michael@0 13 }
michael@0 14 </script>
michael@0 15 <html:canvas id="canvas" width="100" height="100"
michael@0 16 style="width: 100px; height: 100px; max-height: 100px; max-width: 100px;"/>
michael@0 17 </window>

mercurial