Files
tubestation/servo/tests/html/test_canvas.html
Jack Moffitt 132ee35633 servo: Merge #3230 - Cargoify servo (from servo:cargoify)
Source-Repo: https://github.com/servo/servo
Source-Revision: b1305bb7d051f83850c51bb0da0ccc86a5e07922
2014-09-09 08:18:18 -06:00

19 lines
390 B
HTML

<!DOCTYPE html>
<html>
<body>
<canvas id="tutorial" style="border:1px solid #d3d3d3"></canvas>
<script type="text/javascript">
canvas = document.getElementById('tutorial');
canvas.width = 200;
canvas.height = 200;
var ctx = canvas.getContext('2d');
ctx.fillRect(10.0,10.0,100.0,100.0);
ctx.strokeRect(20.0,40.0,80.0,80.0);
ctx.clearRect(10.0,10.0,100.0,100.0);
</script>
</body>
</html>