SVGFEDropShadowElement: result property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
Thuộc tính chỉ đọc result của giao diện SVGFEDropShadowElement mô tả tên được gán của một bộ lọc SVG dưới dạng SVGAnimatedString.
Nó phản ánh thuộc tính result. Giá trị thuộc tính là <custom-ident>. Nếu được cung cấp, đồ họa kết quả từ việc xử lý bộ lọc này có thể được tham chiếu bằng thuộc tính in trên một bộ lọc tiếp theo trong cùng phần tử <filter>.
Nếu không có thuộc tính result nào được định nghĩa, result.baseVal và result.animVal của bộ lọc sẽ là các chuỗi rỗng, và đầu ra của bộ lọc <feDropShadow> chỉ có thể được sử dụng lại làm đầu vào ngầm định cho bộ lọc tiếp theo nếu bộ lọc đó không cung cấp giá trị cho thuộc tính in của nó.
Giá trị
Một SVGAnimatedString.
Ví dụ
const feDropShadowElement = document.querySelector("feDropShadow");
const filterName = feDropShadowElement.result;
console.log(filterName.baseVal); // the filter's assigned name
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-result> |
Tương thích trình duyệt
Xem thêm
SVGFEDropShadowElement.in1<custom-ident>data type- CSS
drop-shadow()function - CSS
box-shadowproperty - CSS
text-shadowproperty - CSS
<blend-mode>data type - CSS
mix-blend-modeproperty