pub fn resolve(&self, system_colors: &crate::system::SystemColors, fallback: ColorU) -> ColorU {
pub fn resolve(&self, system_colors: &crate::system::SystemColors, fallback: ColorU) -> ColorU {
// repr(C,u8) FFI enum: boxing the large variant would change the C ABI (api.json bindings); size
// repr(C,u8) FFI enum: boxing the large variant would change the C ABI (api.json bindings); size
// repr(C,u8) FFI enum: boxing the large variant would change the C ABI (api.json bindings); size
TooFewGradientStops(val) => format!("Failed to parse gradient due to too few gradient steps: \"{}\"", val),
TooManyComponents(e) => format!("background-position can only have one or two components, not more: \"{}\"", e),
) -> Result<Option<(AngleValue, StyleBackgroundPosition)>, CssConicGradientParseError<'_>> {
fn parse_radial_gradient_size(input: &str) -> Result<RadialGradientSize, InvalidValueErr<'_>> {