monks/y

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

The y property only applies to {{SVGElement(“rect”)}}, {{SVGElement(“image”)}}, {{SVGElement(“foreignObject”)}}, and {{SVGElement(“svg”)}} elements nested in an <svg>. It has no effect on outermost <svg> elements 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 y

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

Search Document