Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

icons looks like a mess on latest firefox

Open zachzhao1984 opened this issue 13 years ago • 5 comments

actsocial 2013-11-12 14-12-22

zachzhao1984 avatar Nov 12 '13 06:11 zachzhao1984

@nouh The font file appears to be missing. I would look for that file on your server first, and make sure you have cleared your cache since the update.

Unprofound avatar Nov 12 '13 16:11 Unprofound

I've seen that several times, and only on Firefox.

fiddle

And here's a few Chrome and Firefox versions on BrowserStack.

Definitely a bug, not sure what's causing it, though.

brigand avatar Nov 12 '13 16:11 brigand

Okay, this may be a Firefox bug.

When Chrome sends a request for icons.woff or icons.tiff, it has this header:

Accept:*/*

When Firefox makes the request it has this header:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

So a correctly written web server won't send back anything except HTML or XML, which fonts are neither of. Here's a blog article about it, and there are a dozen duplicates in FireFox's bug tracker about this. It's intentional.

I'm going to shoot GitHub a message, and ask if they can make a CORS exception for fonts.

brigand avatar Nov 12 '13 17:11 brigand

If you are linking to your font file from a separate domain, this is to do with Cross-Origin-Resources.

Firefox is the only browser by default to deny loading any font files served from another domain. http://geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox/

jlukic avatar Nov 13 '13 01:11 jlukic

I sent GitHub a message about setting CORS headers, and they said they'd bring it up with the rest of the team (read: no promises). But generally, you shouldn't have problems as long as you host it your self :-)

On Tue, Nov 12, 2013 at 5:43 PM, Jack Lukic [email protected]:

If you are linking to your font file from a separate domain, this is to do with Cross-Origin-Resources.

Firefox is the only browser by default to deny loading any font files served from another domain.

http://geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox/

— Reply to this email directly or view it on GitHubhttps://github.com/jlukic/Semantic-UI/issues/347#issuecomment-28354638 .

brigand avatar Nov 13 '13 01:11 brigand