Bug 1535077 - Switch to using Ref and PureComponent in the SearchBox component. r...
[gecko.git] / layout / reftests / bugs / 366616-1.xul
blob4da1bf7a46f0b2f3d2441ea5a44143d2e41c1297
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()
9 var c = document.getElementById("canvas");
10 var ctx = c.getContext("2d");
11 ctx.fillStyle = "#ff0000";
12 ctx.fillRect(0, 0, 100, 100);
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>