monks/fill_opacity

The fill-opacity CSS property defines the opacity of the painting operation (color, gradient, pattern, etc.) applied to SVG shapes or text content elements to fill the element. The property defines the opacity of the element’s fill only; it does not affect the stroke. If present, it overrides the element’s {{SVGAttr(“fill-opacity”)}} attribute.

The fill-opacity property only applies to {{SVGElement(“circle”)}}, {{SVGElement(“ellipse”)}}, {{SVGElement(“path”)}}, {{SVGElement(“polygon”)}}, {{SVGElement(“polyline”)}}, {{SVGElement(“rect”)}}, {{SVGElement(“text”)}}, {{SVGElement(“textPath”)}}, and {{SVGElement(“tspan”)}} elements nested in an {{SVGElement(“svg”)}}. It doesn’t apply to other SVG, HTML, or pseudo-elements.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for fill-opacity

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for fill-opacity. It will be wrapped in var() and have -- prepended.

Search Document