Skip to content

Instantly share code, notes, and snippets.

@ltackett
Created April 26, 2010 20:17
Show Gist options
  • Save ltackett/379838 to your computer and use it in GitHub Desktop.
Save ltackett/379838 to your computer and use it in GitHub Desktop.
// Support for mozilla in experimental css3 properties.
$experimental-support-for-mozilla : true !default;
// Support for webkit in experimental css3 properties.
$experimental-support-for-webkit : true !default;
// Support for opera in experimental css3 properties.
$experimental-support-for-opera : false !default;
// Support for microsoft in experimental css3 properties.
$experimental-support-for-microsoft : false !default;
// Support for khtml in experimental css3 properties.
$experimental-support-for-khtml : false !default;
// Same as experimental(), but for cases when the property is the same and the value is vendorized
@mixin experimental-value($property, $value,
$moz : $experimental-support-for-mozilla,
$webkit : $experimental-support-for-webkit,
$o : $experimental-support-for-opera,
$ms : $experimental-support-for-microsoft,
$khtml : $experimental-support-for-khtml,
$official : true
) {
@if $moz { #{$property} : -moz-#{$value}; }
@if $webkit { #{$property} : -webkit-#{$value}; }
@if $o { #{$property} : -o-#{$value}; }
@if $ms { #{$property} : -ms-#{$value}; }
@if $khtml { #{$property} : -khtml-#{$value}; }
@if $official { #{$property} : #{$value}; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment