summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_5_ref.html
blob: 66b7cc194ac5715054b786d340d339337ebfeebb (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
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<style>
  html, body {
    margin: 0;
  }
  #destination {
    width: 100px;
    height: 100px;
    background-color: red;
    overflow: hidden;
  }

  #destination .img{
    position: relative;
    top: 50px;
    left: 50px;
    width: 64px;
    height: 32px;
    overflow: hidden;
  }

  #destination .img img{
    width: 100%;
    height: 100%;
  }

</style>
<body>
<div id="destination">
  <div class="img">
    <img src="../2x2.png" />
  </div>
</div>
</body>
</html>