https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 6ee26bf4476a2e16c26033adc7485290a987648b authored by Domenic Denicola on 06 September 2016, 21:02:42 UTC
Add custom element prototype tests
Tip revision: 6ee26bf
drawimage_canvas_7_ref.html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<style>
  html, body {
    margin: 0;
  }
</style>
<body>
<canvas id="dest" height="100" width="100"></canvas>
<script type="text/javascript">

var destCanvas = document.getElementById('dest');
var destCtx = destCanvas.getContext('2d');
destCtx.fillStyle = "#FF0000";
destCtx.fillRect(0, 0, destCanvas.width, destCanvas.height);
destCtx.fillStyle = "#00FFFF";
destCtx.fillRect(25, 25, 25, 25);
destCtx.fillStyle = "#000000";
destCtx.fillRect(30, 30, 20, 20);

</script>
</body>
</html>
back to top