mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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>
|