blob: 9de754415bdacc1d36d84b32308bc13ce19e2e92 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
width: 100px;
height: 100px;
margin: 10px;
border: 2px solid gray;
display: inline-block;
position: relative;
}
.box {
position: absolute;
width: 100px;
height: 100px;
background-image: url('resources/checker.png');
background-repeat: no-repeat;
}
.repeat .box {
background-repeat: repeat;
}
</style>
</head>
<body>
<div>
<div class="container">
<div class="box" style="background-position: 0 0"></div>
</div>
<div class="container">
<div class="box" style="background-position: 10px 20px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 5px 25px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 25px 5px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 45px 25px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 100% 25px"></div>
</div>
</div>
<div class="repeat">
<div class="container">
<div class="box" style="background-position: 0 0"></div>
</div>
<div class="container">
<div class="box" style="background-position: 10px 20px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 5px 25px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 25px 5px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 45px 25px"></div>
</div>
<div class="container">
<div class="box" style="background-position: 100% 25px"></div>
</div>
</div>
<div class="repeat">
<div class="container">
<div class="box" style="background-position: 0 0; -webkit-clip-path: inset(0 50px 50px 0);"></div>
</div>
<div class="container">
<div class="box" style="background-position: 10px 20px; -webkit-clip-path: inset(20px 40px 30px 10px);"></div>
</div>
<div class="container">
<div class="box" style="background-position: 5px 25px; -webkit-clip-path: inset(25px 45px 25px 5px);"></div>
</div>
<div class="container">
<div class="box" style="background-position: 25px 5px; -webkit-clip-path: inset(5px 25px 45px 25px);"></div>
</div>
<div class="container">
<div class="box" style="background-position: 45px 25px; -webkit-clip-path: inset(25px 5px 25px 45px);"></div>
</div>
<div class="container">
<div class="box" style="background-position: 100% 25px; -webkit-clip-path: inset(25px 0 25px 50px);"></div>
</div>
</div>
</body>
</html>