зеркало из https://github.com/mozilla/gecko-dev.git
Reftest for bug 366616 - Canvas in XUL is not rendered, r=jwalden+bmo
This commit is contained in:
Родитель
2289d8bc14
Коммит
ef7102067b
|
@ -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>
|
|
@ -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
|
== 364861-1.html 364861-1-ref.html
|
||||||
== 364862-1.html 364862-1-ref.html
|
== 364862-1.html 364862-1-ref.html
|
||||||
== 365173-1.html 365173-1-ref.html
|
== 365173-1.html 365173-1-ref.html
|
||||||
|
== 366616-1.xul 366616-1-ref.xul
|
||||||
== 367220-1.html 367220-1-ref.html
|
== 367220-1.html 367220-1-ref.html
|
||||||
== 367247-s-visible.html 367247-s-hidden.html
|
== 367247-s-visible.html 367247-s-hidden.html
|
||||||
== 367247-s-hidden.html 367247-s-auto.html
|
== 367247-s-hidden.html 367247-s-auto.html
|
||||||
|
|
Загрузка…
Ссылка в новой задаче