Skip to content

Commit

Permalink
Use background instead of background-image so we make sure to overrid…
Browse files Browse the repository at this point in the history
…e older settings.
  • Loading branch information
Alex Iskander authored and Tom Dale committed Dec 15, 2010
1 parent 70e949b commit 4d73cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/chance/lib/chance/imagers/data_url.rb
Expand Up @@ -14,7 +14,7 @@ def css
slices.each do |name, slice|
# so, the path should be the path in the chance instance
output += "." + slice[:css_name] + " { "
output += "background-image: url("
output += "background: url("
output += '"data:image/png;base64,'

base64Image = Base64.encode64(slice[:image].to_blob({ :fast_rgba => true }))
Expand Down

0 comments on commit 4d73cce

Please sign in to comment.