summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_4_ref.html
blob: baa6591a220e16e7c8f83d9b132dcfd2b1a288bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<style>
  html, body {
    margin: 0;
  }
  #destination {
    width: 100px;
    height: 100px;
    background-color: red;
  }

  #destination img{
    position: absolute;
    top: 50px;
    left: 50px;
    width: 16px;
    height: 16px;
  }
</style>
<body>
<div id="destination">
  <img src="../2x2.png" />
</div>
</body>
</html>