From d7d7283ef90a369acea2f468513c5cf23f17fadd Mon Sep 17 00:00:00 2001 From: Jonah Schulte Date: Fri, 19 Sep 2014 16:28:44 -0400 Subject: [PATCH] Expand prefix function to fix 'Cross Browser Functions should prefix a list of properties' case. --- .../functions/_cross_browser_support.scss | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/compass/functions/_cross_browser_support.scss b/lib/compass/functions/_cross_browser_support.scss index e5ea276..7a0ce67 100644 --- a/lib/compass/functions/_cross_browser_support.scss +++ b/lib/compass/functions/_cross_browser_support.scss @@ -3,8 +3,22 @@ // https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/cross_browser_support.rb // -@function prefix($prefix, $property) { - @return #{$prefix}-#{$property}; +@function prefix($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) { + $properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9; + $props: false; + @each $item in $properties { + @if $item == null {} + @else { + $item: #{$prefix}-#{$item}; + @if $props { + $props: $props, $item; + } + @else { + $props: $item; + } + } + } + @return $props; } @function -svg($property) {