Closed (fixed)
Project:
CSSTidy
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jul 2010 at 19:44 UTC
Updated:
2 Nov 2013 at 00:30 UTC
Jump to comment: Most recent
Hey there,
I think the @font-face definitions are getting stripped out.
Comments
Comment #1
Mac Clemmens commentedTo provide a little more detail, we're using the @font-face generator on Font Squirrel, and for some reason, CSS tidy removes all of the definition. I know it contains a little hack to make the definition work in IE and other browsers. Can you provide a recommendation, or perhaps a setting to allow the @font-face defs to pass directly through?
Comment #2
philbar commentedCan you test the following fix?
Modify line 711 of
class.csstidy.phpto look like this:Source: http://www.pixelastic.com/blog/86:csstidy-and-the-woff-fonts
Comment #3
Mac Clemmens commentedHey,
Thanks for this code!
It didn't work, unfortunately, but I think we're getting closer.
Here's the CSS that seems to be getting messed up: (It's a special format that works on all the different browsers.)
Comment #4
philbar commentedOk, I'll try to test it this weekend.
Comment #5
philbar commentedComment #6
philbar commentedThis issue here appears that
src:isn't a registered property with CSSTidy.By adding the following to the list of properties on line 181 of
data.inc.phpwe get a partial fixRunning the code, this:
gets turned into this:
So, it overwrites the following code:
src: url('fonts/league_gothic-webfont.eot');...which I believe means Internet Explorer gets left out of the fun. :-(
Comment #7
philbar commentedComment #8
philbar commentedFrom the project page:
Comment #9
philbar commentedGoing to try getting this to work:
http://www.pixelastic.com/blog/188:css3-gradients-with-csstidy
The cursor hack it refers to no longer exist in CSSTidy, so I'm not sure this will work.
Comment #10
philbar commentedhttp://drupalcode.org/project/csstidy.git/commit/894ea13
Comment #11
philbar commented