You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 1.65.0 pow() is always parsed as calculation instead of custom function. If user defines a custom function with the same name as native css function, Sass would not parse it as function any more.
@function pow($base, $exponent) {
$result: 1;
@for $_ from 1 through $exponent {
$result: $result * $base;
}
@return $result;
}
// This example still produce the same output, but the custom function is not called due to `pow(4, 3)` being parsed as calc.
.sidebar {
float: left;
margin-left: pow(4, 3) * 1px;
}
Also, it is probably worth to have a breaking change notice as some users got bite by this behavior change:
Since 1.65.0
pow()
is always parsed as calculation instead of custom function. If user defines a custom function with the same name as native css function, Sass would not parse it as function any more.It means the example that defines a custom
pow()
function is no longer correct and need to be updated: https://sass-lang.com/documentation/at-rules/function/Also, it is probably worth to have a breaking change notice as some users got bite by this behavior change:
@pamelalozano16
The text was updated successfully, but these errors were encountered: