blob: 6d13ff65852ddae928c133a6d1ca385c3c0d7391 [file] [log] [blame]
<style>
.box-with-hole {
height: 200px;
width: 200px;
background-color: green;
-webkit-mask: url('data:image/svg+xml;utf8, \
<svg viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg"> \
<rect width="100%" height="100%" fill="white"/> \
<rect x="25%" y="25%" width="50%" height="50%" fill="black"/> \
</svg>') luminance no-repeat;
}
</style>
<body>
<div class="box-with-hole"></div>
</body>