summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/canvas-before-css.html
blob: 51b562b5b75908ff1eccfbbb8de47acb09c57e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<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">
        var canvas = document.getElementById("mycanvas");
        canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height);
    </script>
</body>
</html>