Preserve info from cssparser errors
When parsing properties, right now we may obtain an error from the cssparser
crate. I think we always translate those errors to a higher-level AttributeError
, basically ignoring the one from cssparser
. However, cssparser
errors contain valuable information about an unexpected token or such.
-
For parsing errors, store a cssparser
error as part of ourAttributeError::Parse
. I think we can simplyclone()
the errors to make them long-lived; they useCowRcString
for strings instead of plain references. -
Propagate cssparser
errors everywhere, instead of using a simple error string.