monks/x

The x CSS property defines the x-axis coordinate of the top left corner of the SVG {{SVGElement(“rect”)}} shape, {{SVGElement(“image”)}} image, {{SVGElement(“foreignObject”)}} viewport or nested {{SVGElement(“svg”)}} viewport relative to the nearest <svg> ancestor’s user coordinate system. If present, it overrides the element’s {{SVGAttr(“x”)}} attribute.

The x property only applies to {{SVGElement(“rect”)}}, {{SVGElement(“image”)}}, {{SVGElement(“foreignObject”)}}, and {{SVGElement(“svg”)}} elements nested in an {{SVGElement(“svg”)}}. It has no effect on the outermost <svg> elements itself, and does not apply to 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.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for x

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

Search Document