Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy font shorthand #149

Closed
GoalSmashers opened this issue Sep 27, 2013 · 10 comments
Closed

Buggy font shorthand #149

GoalSmashers opened this issue Sep 27, 2013 · 10 comments
Assignees
Milestone

Comments

@GoalSmashers
Copy link
Contributor

See discussion in #134.

@ghost ghost assigned GoalSmashers Sep 27, 2013
GoalSmashers pushed a commit that referenced this issue Sep 29, 2013
* It does not offer optimal minification by not handling 'font:normal normal normal <size> <font-family' case.
* Will be further improved to support mentioned case.
@XhmikosR
Copy link
Contributor

So basically, font isn't optimized regarding 400/700, right?

@GoalSmashers
Copy link
Contributor Author

It is unless all optional values are given, e.g. font: bold normal normal 13px Arial;

On Sep 29, 2013, at 14:05, XhmikosR notifications@github.com wrote:

So basically, font isn't optimized regarding 400/700, right?


Reply to this email directly or view it on GitHub.

@Elexy
Copy link

Elexy commented Sep 29, 2013

Cool, tnx guys!

@GoalSmashers
Copy link
Contributor Author

Sure, anytime! PR for clean-css-brunch is here: brunch/clean-css-brunch#6

@smschrader
Copy link

There is an issue with how clean-css "interprets" the short hand css font property still.
For example in my case the shorthand

font: 11px/normal sans-serif;

got converted to

font: 11px/400 sans-serif;

setting

shorthandCompacting: false

had no effect either.

@XhmikosR
Copy link
Contributor

@GoalSmashers @jakubpawlowicz: the font minification should take into account the case where line-height is set to normal.

@jakubpawlowicz
Copy link
Collaborator

I can't see this error happening in any of the latest 3.x branches. Which version do you use, @smschrader?

@XhmikosR
Copy link
Contributor

Indeed, I can confirm this doesn't happen with the latest version.

@smschrader
Copy link

@jakubpawlowicz I'm using gulp-minify-css which is at

"version": "1.1.6"

Which has a dependency of clean-css

"clean-css": "^3.3.1"

My current version of clean-css in the build is

"version": "3.3.6"

@jakubpawlowicz
Copy link
Collaborator

So that's the latest version and it should be OK. I wonder if there's anything else in your gulp chain that is breaking it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants