flood-color
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.
The flood-color attribute indicates what color to use to flood the current filter primitive subregion.
Note:
As a presentation attribute, flood-color also has a CSS property counterpart: flood-color. When both are specified, the CSS property takes priority.
You can use this attribute with the following SVG elements:
Example
Usage notes
| Value | color |
|---|---|
| Initial value | black |
| Animatable | Yes |
Specifications
| Specification |
|---|
| Filter Effects Module Level 1 # FloodColorProperty |
Browser compatibility
See also
- CSS
flood-colorproperty flood-opacity