summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/2dcontext/drawing-images-to-the-canvas/drawimage_html_image_6_ref.html
blob: d7343375508e3137151f26af84ae214202159d64 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<style>
  html, body {
    margin: 0;
  }
  #destination {
    width: 100px;
    height: 100px;
    background-color: red;
    background-color: red;
    background-image: url("../2x2.png");
    background-position: -32px -32px;
    background-size: 64px 64px;
    background-repeat: no-repeat;
  }

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