Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<title>CSS Filters: Blur an HTML Element and clip to the blur rect</title>
<style type="text/css">
#target {
filter: url(#blur);
width: 400px;
height: 400px;
}
#inner {
position: relative;
left: 100px;
top: 100px;
width: 100px;
height: 100px;
background-color: #00ff00;
}
body {
margin: 0px;
}
</style>
</head>
<body>
<div id="target">
<div id="inner"></div>
</div>
<svg width="0" height="0">
<filter id="blur" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" x="100" y="100" width="100" height="100"/>
</filter>
</svg>
</body>
</html>