36 lines
735 B
HTML
36 lines
735 B
HTML
<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>
|