Revert "Don't output transparent in css2 ouput."

Transparent is a legal value in css2.

This reverts commit 119ce9d018.
This commit is contained in:
Chris Eppstein 2011-03-28 09:29:38 -07:00
parent 2521d4dd7b
commit ccb391d9d1
2 changed files with 0 additions and 19 deletions

View File

@ -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

View File

@ -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