Skip to main content

Module shape_parser

Module shape_parser 

Source
Expand description

CSS Shape parsing for shape-inside, shape-outside, and clip-path

Supports CSS Shapes Level 1 & 2 syntax:

  • circle(radius at x y)
  • ellipse(rx ry at x y)
  • polygon(x1 y1, x2 y2, ...)
  • inset(top right bottom left [round radius])
  • path(svg-path-data)

Enums§

ShapeParseError
Error type for shape parsing failures

Functions§

parse_shape
Parses a CSS shape value