summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_8_ref.html
blob: 1a025d26d99ce6cddd860d3ffe0352fede461cd1 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<style>
  html, body {
    margin: 0;
  }

  #destination {
    width: 100px;
    height: 100px;
    background-color: red;
  }

  #img {
    position: relative;
    top: 0px;
    left: 0px;
    width: 32px;
    height: 32px;
    background-image: url("../2x2.png");
    background-position: -32px -32px;
    background-size: 64px 64px;
    background-repeat: no-repeat;
  }

</style>
<body>
<div id="destination">
  <div id="img"><div>
</div>
</body>
</html>