Support background-clip:text

This commit is contained in:
Thomas Reynolds 2010-04-13 10:11:45 -07:00 committed by Chris Eppstein
parent 8d4c47058c
commit cc7ef3bf1f

View File

@ -15,10 +15,12 @@ $default-background-clip: padding-box !default;
// //
// * padding-box // * padding-box
// * border-box // * border-box
// * text
@mixin background-clip($clip: $default-background-clip) { @mixin background-clip($clip: $default-background-clip) {
// webkit and mozilla use the deprecated short [border | padding] // webkit and mozilla use the deprecated short [border | padding]
$deprecated: padding; $deprecated: $clip;
@if $clip == padding-box { $deprecated: padding; }
@if $clip == border-box { $deprecated: border; } @if $clip == border-box { $deprecated: border; }
// Support for webkit and mozilla's use of the deprecated short form // Support for webkit and mozilla's use of the deprecated short form
@include experimental(background-clip, $deprecated, @include experimental(background-clip, $deprecated,