blob: 8785c0dc7a3d84702402cc267884ae14b0063dda [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<script>
</script>
<style>
/* 'mask-image-slice' without 'fill' clips inner content area away.
'clip' clips evyerthing outside of rect() away.
If filter wouldn't be applyed first in the chain, you either see
blured background in the 'fill' area, or outsite the 'clip' area. */
div {
width: 350px;
height: 350px;
background-color: red;
position: absolute;
-webkit-mask-box-image-slice: 75;
-webkit-mask-box-image-repeat: stretch;
-webkit-mask-box-image-source: url(resources/mask.png);
clip: rect(76px, 274px, 274px, 76px);
filter: blur(20px);
}
</style>
</head>
<body>
<div></div>
</body>
</html>