From 203200ca4cd15629366a8ecb59cca73968c28c9a Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Mon, 6 Apr 2020 22:35:07 -0400 Subject: [PATCH] emit rgba inside rgba for two args special --- src/builtin/color/rgb.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin/color/rgb.rs b/src/builtin/color/rgb.rs index 85ff7b7..4047deb 100644 --- a/src/builtin/color/rgb.rs +++ b/src/builtin/color/rgb.rs @@ -291,7 +291,7 @@ pub(crate) fn register(f: &mut HashMap) { v if v.is_special_function() => { let alpha = arg!(args, scope, super_selector, 1, "alpha"); return Ok(Value::Ident( - format!("rgb({}, {})", v, alpha), + format!("rgba({}, {})", v, alpha), QuoteKind::None, )); } @@ -308,7 +308,7 @@ pub(crate) fn register(f: &mut HashMap) { v if v.is_special_function() => { return Ok(Value::Ident( format!( - "rgb({}, {}, {}, {})", + "rgba({}, {}, {}, {})", color.red(), color.green(), color.blue(),