SVGFilterElement: 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 SVGFilterElement mô tả kích thước theo chiều dọc của bộ lọc SVG dưới dạng SVGAnimatedLength.
Nó phản ánh thuộc tính height của phần tử <filter>. Thuộc tính là một <length> hoặc <percentage> tương đối so 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 theo đơn vị hệ tọa độ người dùng.
Giá trị
Một SVGAnimatedLength.
Ví dụ
js
const filter = document.querySelector("filter");
const verticalSize = filter.height;
console.log(verticalSize.baseVal.value); // giá trị `height`
Thông số kỹ thuật
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterelement-height> |
Tương thích trình duyệt
Xem thêm
- SVG tutorial: Filter effects
- SVG filter primitive attributes
- CSS
<blend-mode>data type - CSS
mix-blend-modeproperty