From ccb391d9d1948740950ce402b9907a6e83f15733 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 28 Mar 2011 09:29:38 -0700 Subject: [PATCH] Revert "Don't output transparent in css2 ouput." Transparent is a legal value in css2. This reverts commit 119ce9d018ef25bf08531114ce22307306dfc212. --- .../monkey_patches/browser_support.rb | 18 ------------------ test/sass_extensions_test.rb | 1 - 2 files changed, 19 deletions(-) diff --git a/lib/compass/sass_extensions/monkey_patches/browser_support.rb b/lib/compass/sass_extensions/monkey_patches/browser_support.rb index 95d8997e..6dfa63d8 100644 --- a/lib/compass/sass_extensions/monkey_patches/browser_support.rb +++ b/lib/compass/sass_extensions/monkey_patches/browser_support.rb @@ -92,22 +92,4 @@ module Sass::Script end end - class String < Literal - def supports?(aspect) - aspect == "css2" && value == "transparent" && type == :identifier - end - - def has_aspect? - true - end - - def to_css2(options = self.options) - if value == "transparent" && type == :identifier - Sass::Script::String.new("") - else - dup - end - end - end - end diff --git a/test/sass_extensions_test.rb b/test/sass_extensions_test.rb index 3d129d87..cbd75f8a 100644 --- a/test/sass_extensions_test.rb +++ b/test/sass_extensions_test.rb @@ -87,7 +87,6 @@ class SassExtensionsTest < Test::Unit::TestCase assert_equal "true", evaluate("blank('')") assert_equal "true", evaluate("blank(' ')") assert_equal "true", evaluate("blank(-compass-space-list(' '))") - assert_equal " ", evaluate("-css2(transparent linear-gradient(#fff,#000))") end protected