blob: 5bb25b91b85a83a4d38d1c670ed83a75e6d85ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!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>
|