https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7bc192ac836151b0bceeef8342cc0a64acfefd68 authored by Simon Pieters on 26 August 2016, 12:17:45 UTC
Test innerText getter for two <pre> siblings
Tip revision: 7bc192a
drawimage_canvas_5_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(50, 50, 50, 20);
destCtx.fillStyle = "#000000";
destCtx.fillRect(55, 52, 40, 16);

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