mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
23 lines
587 B
HTML
23 lines
587 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait reftest-print">
|
|
<head>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
var canvas = document.getElementById('canvas');
|
|
canvas.mozPrintCallback = function(obj) {
|
|
var ctx = obj.context;
|
|
ctx.fillStyle = 'rgb(255, 0, 0)';
|
|
ctx.fillRect(0, 0, 10, 10);
|
|
obj.done();
|
|
};
|
|
setTimeout(function() {
|
|
document.documentElement.className = "reftest-print"
|
|
}, 0);
|
|
};
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas" width="10px" height="10px"></canvas>
|
|
</body>
|
|
</html>
|