pub fn parse_clip_rect(
input: &str,
) -> Result<StyleClipRect, StyleClipRectParseError<'_>>Expand description
Parses a StyleClipRect from a string slice.
Accepts:
autoโ equivalent torect(auto, auto, auto, auto).rect(<top>, <right>, <bottom>, <left>)โ comma-separated form.rect(<top> <right> <bottom> <left>)โ legacy space-separated form.
Each edge is either auto or a <length>. Negative lengths are permitted.
ยงErrors
Returns an error if input is not a valid CSS clip-rect value.