mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Reftest for bug 366616 - Canvas in XUL is not rendered, r=jwalden+bmo
This commit is contained in:
parent
2289d8bc14
commit
ef7102067b
7
layout/reftests/bugs/366616-1-ref.xul
Normal file
7
layout/reftests/bugs/366616-1-ref.xul
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<window id="test-canvas" title="Canvas in XUL test"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml" onload="workWithCanvas();">
|
||||
<box style="width: 100px; height: 100px; max-width: 100px; max-height: 100px; background: red"/>
|
||||
</window>
|
17
layout/reftests/bugs/366616-1.xul
Normal file
17
layout/reftests/bugs/366616-1.xul
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<window id="test-canvas" title="Canvas in XUL test"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml" onload="workWithCanvas();">
|
||||
<script type="text/javascript">
|
||||
function workWithCanvas()
|
||||
{
|
||||
var c = document.getElementById("canvas");
|
||||
var ctx = c.getContext("2d");
|
||||
ctx.fillStyle = "#ff0000";
|
||||
ctx.fillRect(0, 0, 100, 100);
|
||||
}
|
||||
</script>
|
||||
<html:canvas id="canvas" width="100" height="100"
|
||||
style="width: 100px; height: 100px; max-height: 100px; max-width: 100px;"/>
|
||||
</window>
|
@ -151,6 +151,7 @@ fails-if(MOZ_WIDGET_TOOLKIT!="windows") == 351641-2b.html 351641-2-ref.html # bu
|
||||
== 364861-1.html 364861-1-ref.html
|
||||
== 364862-1.html 364862-1-ref.html
|
||||
== 365173-1.html 365173-1-ref.html
|
||||
== 366616-1.xul 366616-1-ref.xul
|
||||
== 367220-1.html 367220-1-ref.html
|
||||
== 367247-s-visible.html 367247-s-hidden.html
|
||||
== 367247-s-hidden.html 367247-s-auto.html
|
||||
|
Loading…
Reference in New Issue
Block a user