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
xproperty 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 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 const revert_layer: #(String, String)