Skip to content
This repository
Browse code

Workaround for asset host bug in FF18

  • Loading branch information...
commit 51b820fafafbd4e15b47434205579f76ef1b50d3 1 parent fccbd44
Gabe Kopley authored January 22, 2013
6  app/assets/stylesheets/about.css.scss → app/assets/stylesheets/about.css.scss.erb
@@ -91,7 +91,11 @@
91 91
   -o-transition: all 0.3s ease-out; /* Opera 10.5–12.00 */
92 92
   transition: all 0.3s ease-out; /* Firefox 16+, Opera 12.50+ */
93 93
 
94  
-  filter: url(/filters.svg#grayscale); /* Firefox 3.5+ */
  94
+  /* there is a bug in Firefox 18 that prohibits the request for the svg file
  95
+     from any host but the app server.
  96
+     CRUFT, remove when fixed, and put filters.svg in app/assets/images/
  97
+     cf. https://bugzilla.mozilla.org/show_bug.cgi?id=833522  */
  98
+  filter: url(http://<%= ENV['COSHX_HOST'] || "localhost:3000"%>/filters.svg#grayscale); /* Firefox 3.5+ */
95 99
   filter: gray; /* IE6-9 */
96 100
   -webkit-filter: grayscale(1); /* Google Chrome & Safari 6+ */
97 101
 

0 notes on commit 51b820f

Please sign in to comment.
Something went wrong with that request. Please try again.