summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/reference/background-position-three-four-values-ref.html
blob: e721a2c0faa54c97f3142167e50a614abb0fa75d (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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<style type="text/css">
div {
  width: 200px;
  height: 200px;
  border: 2px solid black;
  background-image: url("../support/blue_color.png");
  background-repeat: no-repeat;
  display: inline-block;
}
.test1  {
  background-position: 50px 50%;
}
.test2 {
  background-position: 75% 75%;
}
.test3 {
  background-position: 25px 25%;
}
.test4 {
  background-position: 75% 75%;
}
</style>

</head>
<body>

<div class="test1"></div>
<div class="test2"></div>
<div class="test3"></div>
<div class="test4"></div>

</body>
</html>