Open GoogleCodeExporter opened 9 years ago
I have same bug. My code
@font-face {
font-family: 'Bebas';
src: url('../fonts/BebasNeue-webfont.eot');
src: url('../fonts/BebasNeue-webfont.woff') format('woff'), url('../fonts/BebasNeue-webfont.ttf') format('truetype'), url('../fonts/BebasNeue-webfont.svg#webfontAGQ6uv7S') format('svg');
font-weight: normal;
font-style: normal;
} .clear { clear: both; }
doesnt minify correctly
Original comment by laurence...@gmail.com
on 18 Apr 2012 at 12:20
p.s. and I have tried on the current latest version 3.0.1. But I cant fix mine
with the "The fix is to add a space after @font-face" - that still doesnt solve
my bug
Original comment by laurence...@gmail.com
on 18 Apr 2012 at 12:26
There appears to be a problem with multipe @font-face declaration (where you
use different font-weight/font-style combinations for different sources to make
the browser pick the proper source).
cssmin seems to compact these into a single @font-face group (instead of
keeping them separate (normal, bold, italic, bold-italic).
Original comment by dhahler@gmail.com
on 17 Feb 2013 at 12:31
I'm having the same issue with multiple @font-face CSS declarations
Original comment by a...@goneglobal.com
on 30 Apr 2013 at 5:56
I'm having this bug with @font-face
@font-face{
font-family: bebas;
src: url(../fonts/BebasNeue.otf);
}
html,body{height:100%;}
body{background:black;}
result is
@font-face{height:100%}body{background:black}
Original comment by antik...@gmail.com
on 28 Jun 2013 at 10:04
This problem can be fixed by changing
https://code.google.com/p/cssmin/source/browse/trunk/source/parser/plugins/CssAt
FontFaceParserPlugin.php#50
From
return $index + 10;
to
return $index + 9;
Original comment by michele....@progesoft.com
on 18 May 2015 at 10:04
Original issue reported on code.google.com by
cont...@pierre-martin.fr
on 2 Feb 2012 at 4:36