pub fn parse_style_animation(
input: &str,
) -> Result<StyleAnimation, StyleAnimationParseError<'_>>Expand description
Parse <name> <duration> [<delay>] [<timing>] [infinite | <count>].
The name is any non-keyword token; order is name-first (web animation
shorthand accepts more permutations — the strict form keeps ambiguity
out of native function names).
§Errors
Returns StyleAnimationParseError when the value is empty, has no
recognisable name, or its duration fails to parse.