<!DOCTYPE html>
<
html
>
<
body
>
<
svg
height
=
"200"
width
=
"200"
>
<
filter
id
=
"filter"
>
<
feSpecularLighting
specularExponent
=
"5"
lighting-color
=
"gold"
result
=
"light"
in
=
"SourceGraphic"
id
=
"gfg"
>
<
fePointLight
x
=
"100"
y
=
"100"
z
=
"100"
/>
</
feSpecularLighting
>
<
feComposite
in
=
"SourceGraphic"
in2
=
"specOut"
operator
=
"arithmetic"
k1
=
"1"
k2
=
"0"
k3
=
"1"
k4
=
"0"
/>
</
filter
>
<
rect
x
=
"1"
y
=
"1"
width
=
"200"
height
=
"200"
style="stroke: #000000; fill: green;
filter: url(#filter);" />
<
rect
x
=
"50"
y
=
"50"
width
=
"100"
height
=
"100"
style="stroke: #000000; fill: green;
filter: url(#filter);" />
<
g
fill
=
"#FFFFFF"
stroke
=
"black"
font-size
=
"10"
font-family
=
"Verdana"
/>
<
text
x
=
"60"
y
=
"100"
>GeeksForGeeks</
text
>
<
script
type
=
"text/javascript"
>
var g = document.getElementById("gfg");
console.log(g.in1);
console.log("in1 value is : ", g.in1.baseVal)
</
script
>
</
svg
>
</
body
>
</
html
>