monks/stroke_width

The stroke-width CSS property defines the width of a stroke applied to the SVG shape. If present, it overrides the element’s {{SVGAttr(“stroke-width”)}} attribute.

This property applies to any SVG shape or text-content element (see {{SVGAttr(“stroke-width”)}} for a full list), but as an inherited property, it may be applied to elements such as {{SVGElement(“g”)}} and still have the intended effect on descendant elements’ strokes. If the value evaluates to zero, the stroke is not drawn.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of stroke-width

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

Enter a raw string value for stroke-width

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 stroke-width. It will be wrapped in var() and have -- prepended.

Search Document