Since March 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
The kernelUnitLengthX read-only property of the SVGFESpecularLightingElement interface reflects the x value of the kernelUnitLength attribute of the given <feSpecularLighting> element.
The kernelUnitLength attribute indicates the intended distance in current filter units, specified by the primitiveUnits attribute, for the x and y coordinates. It contains one or two values, with the y value defaulting to x if not present, and the kernelUnitLengthX property gets and sets the first value.
An SVGAnimatedNumber object that corresponds to the X-component of the kernelUnitLength attribute of the given element.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
kernelUnitLengthX |
45 | 12 | 3 | 32 | 17.4 | 45 | 4 | 32 | 17.4 | 5.0 | 45 | 17.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX