monks/cx

The cx CSS property defines the x-axis center point of an SVG {{SVGElement(“circle”)}} or {{SVGElement(“ellipse”)}} element. If present, it overrides the element’s {{SVGAttr(“cx”)}} attribute.

While SVG the {{SVGAttr(“cx”)}} attribute is relevant to the SVG {{SVGElement(“radialGradient”)}} element, the cx property only applies to {{SVGElement(“circle”)}} and {{SVGElement(“ellipse”)}} elements nested in an {{SVGElement(“svg”)}}. It doesn’t apply to <radialGradient> or other SVG elements nor to 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)
  • : As an absolute or relative length, it 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 cx

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

Search Document