I am trying to apply Gaussian blur to an element that has some child nodes containing some content.
For Chrome, I did this in an application style:
-webkit-filter: blur(2px);
Firefox does not support this. What firefox supports applies SVG to elements . Knowing this, I searched google for an example where they explained how to use SVG to apply gaussian blur to an element. I found this example with this demo .
I brewed the following CSS:
#div-with-content{
-webkit-filter: blur(2px);
filter: url('#blur');
}
And put this in the appropriate file HTML:
<svg:svg>
<svg:filter id="blur">
<svg:feGaussianBlur stdDeviation="2"/>
</svg:filter>
</svg:svg>
But when I went to check the page, I saw that div-with-contentthere was no more. He disappeared. Every time I delete the blur style with div-with-content, it appears again.
-, , , , .