blob: 515f11c59356d5d61b4e6a0724224e74ca92ab5d [file] [log] [blame]
<html>
<head>
<link rel="stylesheet" href="about:blank" type="text/css">
</head>
<body>
<p>If the canvas below is black, then we managed to draw before loading stylesheets. Hooray!</p>
<canvas id="mycanvas" width="400" height="200"></canvas>
<script type="application/x-javascript">
if (window.testRunner)
testRunner.dumpAsText(true);
var canvas = document.getElementById("mycanvas");
canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height);
</script>
</body>
</html>