layout/reftests/bugs/366616-1.xul

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

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

mercurial