You need to use interpolation (eg. #{$var}
) on your variable in order for Sass to treat it as a CSS property. Without it, you’re just performing variable assignment.
@mixin w_fluid($property_name, $w_element, $w_parent:16) {
#{$property_name}: percentage(($w_element / $w_parent));
}