Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference: inset box-shadow covering the padding box only</title>
<style>
div {
width: 200px;
height: 100px;
border: 40px solid transparent;
background-color: blue;
background-clip: padding-box;
}
</style>
<div></div>