-
Notifications
You must be signed in to change notification settings - Fork 713
background image disappears #59
Comments
Hi, are you sure those spaces are actually valid? |
Yes, it is valid: |
Is it fixed? |
Yes, it is ok now. |
Chrome does not allow cross-origin requests on file://. It's listed as one of -prefix-free's disadvantages in a very prominent place in its page. |
Yes, but prefixfree breaks when I use it through localhost. It converts the bg url to: |
That tells me nothing on its own. What's the URL of the page? Of the CSS file? The original URL of the image? What should it be converted to? |
Ok, it was not so precise. I didn't change anything in your code other than the space in the body background image URL. Original rule: Converted If I view it with file:// it works I guess since it can't find any root URL. |
Oh, I get it now. There is a space in the URL. |
Having a similar problem (I think). I put up a testcase here: http://euphoricmanagement.com/prefixfree/. Basically the stylesheet "sprites.css" is not being loaded correctly. But the other stylesheets are loading correctly. I don't think its my CSS because when I turn off javascript, everything displays correctly. Any help would be appreciated! Thanks, you rock! |
I don't think it's the same issue. The issue in this thread is when spaces exist between the parentheses of url() and the actual URL, and the URL is additionally a relative one. In your case there are no such spaces (at least I didn't see any in that file). Also, I'm not sure exactly what's not loaded correctly. Every image from sprites.css is applied to the page I see (Chrome 18 on OSX). Could you point me to the issue or make a simpler testcase, please? Thanks! |
Ok, just checked in Safari/Chrome and it's working, however when I view it (http://euphoricmanagement.com/prefixfree/) in Firefox 2.0, the main title image and follow links do not have appropriate styles (I think everything on that sprites.css file isn't coming through in FF). I think you have already seen the expected result in chrome, but just to prove that its not FF misinterpreting my CSS, you can either disable js for the page or view http://euphoricmanagement.com. I initially thought it was an encoding issue because when I view the Response (in the Firebug console) of the sprite.css request, it was all garbled characters... If you can't see it I'll try to recreate the issue in a simpler testcase. Thanks again! |
Yes, I can see it in FF. It seems like an encoding issue. Looking into it. |
I'm pretty sure it's an encoding issue, but I can't pinpoint exactly what. It's probably related to a Firefox bug, as it only happens with Firefox. Could you please make a reduction of the problem (e.g. only one CSS file, containing only one CSS rule applied to a very simple —or even empty— HTML page)? Then I'll be able to take it to friends working at Mozilla and they might be able to help more. In the meantime, you can use the |
Lea - Thanks so much for the help. I tried setting up a simple test case but Thanks, On Tue, May 1, 2012 at 3:39 PM, Lea Verou <
|
It doesn't fix the issue, but please stop using spaces in your URI's. It makes a panda cry every time you do it. Think of the pandas. |
Yes, I'll stop using it. It will significantly decrease the load time, and will be more easy to read. Humanity is saved now. |
The following rule is parsed in a wrong way:
the spaces are converted to %20 and the result is that the image cannot be found.
The text was updated successfully, but these errors were encountered: