blob: 81cd61339668951b2ddca6913ad79e4fe3af4e0c [file] [log] [blame]
<!DOCTYPE html>
<title>Canvas test: size.attributes.style</title>
<meta name="author" content="Philip Taylor">
<script src="../common/canvas-tests.js"></script>
<link rel="stylesheet" href="../common/canvas-tests.css">
<body class="show_output">
<h1><a href="index.size.html">size</a>.<a href="index.size.attributes.html">attributes</a>.style</h1>
<p class="desc">Canvas size is independent of CSS resizing</p>
<div class="refs">Spec references:
<ul>
<li><a href="../annotated-spec/canvas.html#testrefs.size.css">size.css</a>
</ul>
</div>
<p class="output">Actual output:</p>
<canvas id="c" class="output" width="50" height="30" style="width: 100px; height: 50px"><p class="fallback">FAIL (fallback content)</p></canvas>
<p class="output expectedtext">Expected output:<p><img src="resources/size.attributes.style.png" class="output expected" id="expected" alt="">
<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {
_assertEqual(canvas.width, 50, "canvas.width", "50");
_assertEqual(canvas.height, 30, "canvas.height", "30");
});
</script>