SVGFECompositeElement: height property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Thuộc tính chỉ đọc height của giao diện SVGFECompositeElement mô tả kích thước theo chiều dọc của một phần tử lọc SVG dưới dạng SVGAnimatedLength.
Nó phản ánh thuộc tính lọc height của phần tử <feComposite>. Phần tử lọc SVG <feComposite> kết hợp hai ảnh đầu vào bằng thao tác kết hợp Porter-Duff. Thuộc tính là một <length> hoặc một <percentage> tương đối với chiều cao của vùng bộ lọc. Giá trị mặc định là 100%. Giá trị thuộc tính là độ dài tính theo đơn vị hệ tọa độ người dùng.
Giá trị
Một SVGAnimatedLength.
Ví dụ
js
const feComposite = document.querySelector("feComposite");
const verticalSize = feComposite.height;
console.log(verticalSize.baseVal.value); // the `height` value
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-height> |
Tương thích trình duyệt
Xem thêm
SVGFECompositeElement.width- CSS
<blend-mode>data type - CSS
mix-blend-modeproperty