emit rgba inside rgba for two args special
This commit is contained in:
parent
b545c162f5
commit
203200ca4c
@ -291,7 +291,7 @@ pub(crate) fn register(f: &mut HashMap<String, Builtin>) {
|
|||||||
v if v.is_special_function() => {
|
v if v.is_special_function() => {
|
||||||
let alpha = arg!(args, scope, super_selector, 1, "alpha");
|
let alpha = arg!(args, scope, super_selector, 1, "alpha");
|
||||||
return Ok(Value::Ident(
|
return Ok(Value::Ident(
|
||||||
format!("rgb({}, {})", v, alpha),
|
format!("rgba({}, {})", v, alpha),
|
||||||
QuoteKind::None,
|
QuoteKind::None,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -308,7 +308,7 @@ pub(crate) fn register(f: &mut HashMap<String, Builtin>) {
|
|||||||
v if v.is_special_function() => {
|
v if v.is_special_function() => {
|
||||||
return Ok(Value::Ident(
|
return Ok(Value::Ident(
|
||||||
format!(
|
format!(
|
||||||
"rgb({}, {}, {}, {})",
|
"rgba({}, {}, {}, {})",
|
||||||
color.red(),
|
color.red(),
|
||||||
color.green(),
|
color.green(),
|
||||||
color.blue(),
|
color.blue(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user