property

Flood color — CSS reference

Sets the color used by feFlood and the shadow color of feDropShadow. The flood primitive fills its filter region rather than stroking the source shape.

Formal Syntax & Structure

css syntaxcss
flood-color: blue;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>flood-color</title><style>body{margin:0;background:white}svg{display:block}#a{flood-color:blue}</style><body><svg xmlns="http://www.w3.org/2000/svg" width="240" height="160" viewBox="0 0 240 160" role="img" aria-label="SVG styling example"><defs><filter id="f" x="0" y="0" width="1" height="1"><feFlood id="a" flood-color="red"/></filter></defs><rect x="40" y="40" width="100" height="80" filter="url(#f)"/></svg></body></html>
CSS Reference