Baseline Widely available
The in1
read-only property of the SVGFESpecularLightingElement
interface reflects the in
attribute of the given <feSpecularLighting>
element.
An SVGAnimatedString
object.
in
Property of feSpecularLighting
Element
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="specularLightingFilter">
<!-- Adds specular lighting effect to the SourceGraphic -->
<feSpecularLighting
in="SourceGraphic"
specularExponent="20"
lighting-color="hotpink"
surfaceScale="2">
<fePointLight x="50" y="50" z="30" />
</feSpecularLighting>
</filter>
</defs>
<rect
x="20"
y="20"
width="100"
height="100"
fill="lightblue"
filter="url(#specularLightingFilter)" />
</svg>
We can access the in
attribute of the feSpecularLighting
element.
// Select the feSpecularLighting element
const specularLightingElement = document.querySelector("feSpecularLighting");
// Access the in1 property
console.log(specularLightingElement.in1.baseVal); // Output: "SourceGraphic"
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4