summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/background-clip-values.html
blob: 69fb3185c41df34030228b4ca609ba19561190c8 (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
<html>
<head>
<title>Testing Background clip values</title>
<style type="text/css">
div {
    border: 15px dashed black;
    background-color:green;
    padding: 15px 25px;
    height: 75px;
    width: 200px;
}

#box1 {
   background-clip: content-box;
}
#box2 {
   background-clip: padding-box;
}
#box3 {
    background-clip: border-box;
}
</style>
</head>
<body>
<div id="box1">
<!-- Background color should be clipped to the content box. Padding space is white.-->
</div>
<div id="box2">
<!-- Background color should be clipped to the padding box. Padding space is green.-->
</div>
<div id="box3">
<!--Background color should be clipped to the border box. Green should be visible within the dashed border.-->
</div>
</body>
</html>