Revert "Don't output transparent in css2 ouput."
Transparent is a legal value in css2.
This reverts commit 119ce9d018
.
This commit is contained in:
parent
2521d4dd7b
commit
ccb391d9d1
@ -92,22 +92,4 @@ module Sass::Script
|
|||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
@ -87,7 +87,6 @@ class SassExtensionsTest < Test::Unit::TestCase
|
|||||||
assert_equal "true", evaluate("blank('')")
|
assert_equal "true", evaluate("blank('')")
|
||||||
assert_equal "true", evaluate("blank(' ')")
|
assert_equal "true", evaluate("blank(' ')")
|
||||||
assert_equal "true", evaluate("blank(-compass-space-list(' '))")
|
assert_equal "true", evaluate("blank(-compass-space-list(' '))")
|
||||||
assert_equal " ", evaluate("-css2(transparent linear-gradient(#fff,#000))")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
Loading…
Reference in New Issue
Block a user