This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
/
background-origin-tests.html
56 lines (50 loc) · 1.88 KB
/
background-origin-tests.html
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
<!DOCTYPE html>
<html>
<head>
<title>Tests for background-origin</title>
<style>
html { -pie-load-path: "../build"; }
.test {
width: 200px;
height: 100px;
border: 10px dotted #C9C;
padding: 10px;
border-radius: 30px;
behavior: url(../build/PIE.htc);
}
.border-box {
background: #CCF url(border.png) border-box no-repeat;
-pie-background: #CCF url(border.png) border-box no-repeat;
}
.border-box-br {
background: #CCF url(border.png) border-box no-repeat 100% 100%;
-pie-background: #CCF url(border.png) border-box no-repeat 100% 100%;
}
.padding-box {
background: #CCF url(border.png) padding-box no-repeat;
-pie-background: #CCF url(border.png) padding-box no-repeat;
}
.padding-box-br {
background: #CCF url(border.png) padding-box no-repeat 100% 100%;
-pie-background: #CCF url(border.png) padding-box no-repeat 100% 100%;
}
.content-box {
background: #CCF url(border.png) content-box no-repeat;
-pie-background: #CCF url(border.png) content-box no-repeat;
}
.content-box-br {
background: #CCF url(border.png) content-box no-repeat 100% 100%;
-pie-background: #CCF url(border.png) content-box no-repeat 100% 100%;
}
</style>
</head>
<body>
<h1>Tests for background-origin</h1>
<div class="test border-box">origin = border-box</div>
<div class="test border-box-br">origin = border-box</div>
<div class="test padding-box">origin = padding-box</div>
<div class="test padding-box-br">origin = padding-box</div>
<div class="test content-box">origin = content-box</div>
<div class="test content-box-br">origin = content-box</div>
</body>
</html>