monks/shape_rendering

The shape-rendering CSS property provides hints to the renderer about what tradeoffs to make when rendering shapes like paths, circles, or rectangles. It only has an effect on the {{SVGElement(“circle”)}}, {{SVGElement(“ellipse”)}}, {{SVGElement(“line”)}}, {{SVGElement(“path”)}}, {{SVGElement(“polygon”)}}, {{SVGElement(“polyline”)}}, and {{SVGElement(“rect”)}} elements. If explicitly declared, the value of the CSS property overrides the any values of the element’s {{SVGAttr(“shape-rendering”)}} attribute.

Values

pub const auto_: #(String, String)
  • : This value directs the user agents to make tradeoffs in order to balance speed, edge crispness, and geometric precision, with geometric precision given more importance than speed and edge crispness.
pub const crisp_edges: #(String, String)
  • : This value directs the user agent to emphasize edge contrast over geometric precision or rendering speed. The final rendering is likely to skip techniques such as anti-aliasing. It may also adjust line positions and line widths in order to align edges with device pixels.
pub const geometric_precision: #(String, String)
  • : This value directs the user agent to emphasize geometric precision over speed or crisp edges. The final rendering may involve techniques such as anti-aliasing.
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const optimize_speed: #(String, String)
  • : This value directs the user agent to emphasize rendering speed over geometric precision or edge crispness. The final rendering is likely to skip techniques such as anti-aliasing.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for shape-rendering

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

Search Document