summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-clip-1.html
blob: 8cd8505de48f66888a122d10ef43398762496c68 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE HTML>
<title>background-clip</title>
<style type="text/css">

div {
  position: absolute;
  margin: 1px 2px 4px 8px;
  border: transparent solid;
  border-width: 3px 9px 6px 12px;
  padding: 5px 11px 9px 7px;
  width: 37px;
  height: 19px;
  /*
   * content box: 37 x 19
   * padding box: 55 x 33
   * border  box: 76 x 42
   * margin  box: 86 x 47
   */
}

div.color {
  top: 10px;
  background-color: blue;
}

div.image {
  top: 110px;
  background-image: url(blue-32x32.png);
}

div.border {
  background-clip: border-box;
  left: 10px;
}

div.padding {
  background-clip: padding-box;
  left: 110px;
}

div.content {
  background-clip: content-box;
  left: 210px;
}

</style>
<div class="color border"></div>
<div class="color padding"></div>
<div class="color content"></div>
<div class="image border"></div>
<div class="image padding"></div>
<div class="image content"></div>