property
Flood opacity — CSS reference
Sets the alpha of a flood or drop-shadow paint. The example uses a half-opaque red flood over white.
Formal Syntax & Structure
css syntaxcss
flood-opacity: 0.5;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>flood-opacity</title><style>body{margin:0;background:white}svg{display:block}#a{flood-opacity:0.5}</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>