du genre ça :
Exemple
<svg
version="1.1"
viewBox="0 0 200 200"
style="max-width:600px"
preserveAspectRatio="xMidYMax meet"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<defs>
<!-- début du fitlre -->
<filter id="glow">
<!-- couleur de la bordure interne -->
<feFlood flood-color="blue" result="glowcolor"/>
<!-- couleur du fond de la forme -->
<feFlood flood-color="transparent" result="fillcolor"/>
<!-- couleur de la bordure -->
<feFlood flood-color="red" result="strokecolor"/>
<!-- Epaisseur du flou gaussien -->
<feGaussianBlur stdDeviation="20" in="SourceGraphic" result="glow0"/>
<feComposite in="glow0" in2="SourceAlpha" operator="in" result="glow1" />
<feColorMatrix in="glow1" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 1 1 0 0" result="glow2"/>
<feComposite in="glowcolor" in2="glow2" operator="in" result="glow"/>
<feComposite in="fillcolor" in2="SourceGraphic" operator="in" result="fill"/>
<feColorMatrix in="SourceGraphic" type="luminanceToAlpha" result="strokealpha"/>
<feComposite in="strokecolor" in2="strokealpha" operator="in" result="stroke"/>
<feMerge>
<feMergeNode in="fill"/>
<feMergeNode in="glow"/>
<feMergeNode in="stroke"/>
</feMerge>
</filter>
<!-- Fin du filtre -->
</defs>
<!-- Forme -->
<path class="borders blur" id="Square" d="M 50,50 150,50 150,150 50,150 z" />
</svg>
svg
{ /* ici on met une image en background : un fond étoilé */
background: url('http://iliketowastemytime.com/system/files/outer-space-hd-wallpaper.jpg');
}
.borders
{
fill: black;
stroke: white;
stroke-width: 5px;
}
.blur
{
filter: url(#glow);
}
Exemple
"Somewhere, something incredible is waiting to be known..."
Carl Sagan.
Carl Sagan.