SVGFEFloodElement: thuộc tính height
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 SVGFEFloodElement mô tả kích thước dọc của một filter primitive SVG dưới dạng SVGAnimatedLength.
Nó phản ánh thuộc tính height của phần tử <feFlood>, phần tử lấp đầy vùng con của filter SVG bằng màu sắc và độ trong suốt được định nghĩa bởi flood-color và flood-opacity. Thuộc tính là một <length> hoặc một <percentage> so với chiều cao của vùng filter. Giá trị mặc định là 100%. Giá trị thuộc tính là một độ dài trong đơn vị hệ tọa độ người dùng.
Giá trị
Một SVGAnimatedLength.
Ví dụ
js
const feFlood = document.querySelector("feFlood");
const verticalSize = feFlood.height;
console.log(verticalSize.baseVal.value); // the `height` value
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-height> |
Tương thích trình duyệt
Xem thêm
SVGFEFloodElement.width- SVG filter tutorial
- CSS
<blend-mode>data type - CSS
mix-blend-modeproperty