monks/rx

The rx CSS property defines the x-axis, or horizontal, radius of an SVG {{SVGElement(“ellipse”)}} and the horizontal curve of the corners of an SVG {{SVGElement(“rect”)}} rectangle. If present, it overrides the shape’s {{SVGAttr(“rx”)}} attribute.

The rx property only applies to {{SVGElement(“ellipse”)}} and {{SVGElement(“rect”)}} elements nested in an {{SVGElement(“svg”)}}. It doesn’t apply to other SVG elements or HTML elements or pseudo-elements.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)
  • : Absolute or relative lengths can be expressed in any unit allowed by the CSS {{cssxref(“<length>”)}} data type. Negative values are invalid.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for rx

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

Search Document