mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-12 09:09:39 +01:00
Fix scale-color().
This commit is contained in:
parent
1e1864770e
commit
1f4596ff6a
@ -373,9 +373,9 @@ void defineCoreFunctions(Environment environment) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return color.changeRgb(
|
return color.changeRgb(
|
||||||
red: scaleValue(color.red, red, 255),
|
red: scaleValue(color.red, red, 255).round(),
|
||||||
green: scaleValue(color.green, green, 255),
|
green: scaleValue(color.green, green, 255).round(),
|
||||||
blue: scaleValue(color.blue, blue, 255),
|
blue: scaleValue(color.blue, blue, 255).round(),
|
||||||
alpha: scaleValue(color.alpha, alpha, 1));
|
alpha: scaleValue(color.alpha, alpha, 1));
|
||||||
} else if (hasHsl) {
|
} else if (hasHsl) {
|
||||||
return color.changeHsl(
|
return color.changeHsl(
|
||||||
|
Loading…
Reference in New Issue
Block a user