summaryrefslogtreecommitdiff
path: root/testsuite/reftests/background-origin.css
blob: f4a315484848b0b681cdc66303e6212ef0241d54 (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
53
54
55
56
57
58
@import "reset-to-defaults.css";

window {
  background-color: rgb(255,255,255);
}

button {
  border-width: 5px;
  border-style: solid;
  border-color: rgba(255,0,0,0.6);
  padding: 10px;
  background-color: rgb(0,0,255);

  background-image: url("green-20x20.png");
  background-repeat: no-repeat;
}

#button1 {
  background-origin: border-box;
  background-clip: border-box;
}
#button2 {
  background-origin: padding-box;
  background-clip: border-box;
}
#button3 {
  background-origin: content-box;
  background-clip: border-box;
}
#button4 {
  background-origin: border-box;
  background-clip: padding-box;
}
#button5 {
  background-origin: padding-box;
  background-clip: padding-box;
}
#button6 {
  background-origin: content-box;
  background-clip: padding-box;
}
#button7 {
  background-origin: border-box;
  background-clip: content-box;
}
#button8 {
  background-origin: padding-box;
  background-clip: content-box;
}
#button9 {
  background-origin: content-box;
  background-clip: content-box;
}

button#reference {
  border-width: 0;
  background-image: url("reference-background-origin.png");
}