Sass does not offer such a feature.
You can get close enough using global variables. However, each individual mix that you use, including third-party ones, must be changed to work in this way.
// the setup $append-property-vals: (); // global variable $old-append-property-vals: (); // global variable @mixin append-property($key, $val, $separator: comma) { $old-val: map-get($append-property-vals, $key); @if $old-val { $append-property-vals: map-merge($append-property-vals, ($key: append($old-val, $val, $separator))) !global; } @else { $append-property-vals: map-merge($append-property-vals, ($key: $val)) !global; } } @mixin append-properties { // cache the original value $old-append-property-vals: $append-property-vals !global; @content; // write out the saved up properties @each $key, $val in $append-property-vals {
Output:
.myclass { transform: scale(2) rotate(15deg); }
source share