SVGFESpecularLightingElement: y 屬性
SVGFESpecularLightingElement 介面的只讀屬性 y,描述了 SVG 濾鏡圖元的垂直座標,其型別為 SVGAnimatedLength。
它反映了 <feSpecularLighting> 元素的 y 屬性,該元素使用 alpha 通道作為凹凸貼圖來照亮源圖形。該屬性是一個 <length> 或 <percentage>。y 屬性是一個百分比值,則屬性值是相對於使用者座標系統單位中的濾鏡區域高度的。預設值為 0。
值
一個 SVGAnimatedLength 物件。
示例
js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const topPosition = feSpecularLighting.y;
console.log(topPosition.baseVal.value); // the `y` value
規範
| 規範 |
|---|
| 濾鏡效果模組第 1 級 # dom-svgfilterprimitivestandardattributes-y |
瀏覽器相容性
載入中…
另見
SVGFESpecularLightingElement.x- CSS
<blend-mode>資料型別 - CSS
mix-blend-mode屬性