summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/backgrounds/background-position-x-origin.html
blob: c3cc3f6f2978ec33af4dde9a7bd795b04c1c64ca (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>
    <title>background-position-x: initial on top of 4-value background-position</title>
    <style>
body { margin: 0 }
.test1 {
    height: 200px;
    width: 200px;
    background-image:
    url(../../css3/images/resources/red-100.png);
    background-repeat: no-repeat;

    /* Intended to be overwritten: */
    background-position: bottom 0% right 0px;
}
.test2 {
    /* The background-position to be used: */
    background-position-x: initial;
}
.ref {
   height: 100px;
   width: 100px;
   top: 100px;
   left: 0;
   background-color: green;
   position: absolute;
}
    </style>
  </head>
  <body>
    <div class="test1 test2"></div>
    <div class="ref"></div>
  </body>
</html>