mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-11 16:49:48 +01:00
Fix plain-CSS invert().
This commit is contained in:
parent
99e0a1100f
commit
594787a0ba
@ -214,7 +214,7 @@ void defineCoreFunctions(Environment environment) {
|
|||||||
if (arguments[0] is SassNumber) {
|
if (arguments[0] is SassNumber) {
|
||||||
// TODO: find some way of ensuring this is stringified using the right
|
// TODO: find some way of ensuring this is stringified using the right
|
||||||
// options. We may need to resort to zones.
|
// options. We may need to resort to zones.
|
||||||
return _functionString("invert", arguments);
|
return _functionString("invert", arguments.take(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
var color = arguments[0].assertColor("color");
|
var color = arguments[0].assertColor("color");
|
||||||
@ -887,7 +887,7 @@ void defineCoreFunctions(Environment environment) {
|
|||||||
|
|
||||||
/// Returns a string representation of [name] called with [arguments], as though
|
/// Returns a string representation of [name] called with [arguments], as though
|
||||||
/// it were a plain CSS function.
|
/// it were a plain CSS function.
|
||||||
SassString _functionString(String name, List<Value> arguments) =>
|
SassString _functionString(String name, Iterable<Value> arguments) =>
|
||||||
new SassString("$name(" +
|
new SassString("$name(" +
|
||||||
arguments.map((argument) => argument.toCssString()).join(', ') +
|
arguments.map((argument) => argument.toCssString()).join(', ') +
|
||||||
")");
|
")");
|
||||||
|
Loading…
Reference in New Issue
Block a user