From cc7ef3bf1f62267b3b1eddde93968fc2ea1d9675 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Tue, 13 Apr 2010 10:11:45 -0700 Subject: [PATCH] Support background-clip:text --- .../compass/stylesheets/compass/css3/_background-clip.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/compass/stylesheets/compass/css3/_background-clip.scss b/frameworks/compass/stylesheets/compass/css3/_background-clip.scss index 8d3b9b5f..24ec1355 100644 --- a/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +++ b/frameworks/compass/stylesheets/compass/css3/_background-clip.scss @@ -15,10 +15,12 @@ $default-background-clip: padding-box !default; // // * padding-box // * border-box +// * text @mixin background-clip($clip: $default-background-clip) { // 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; } // Support for webkit and mozilla's use of the deprecated short form @include experimental(background-clip, $deprecated,