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

Font shorthand quotes bug #1057

Closed
dmitrijs-pavlovs-dev opened this issue Jan 4, 2019 · 1 comment
Closed

Font shorthand quotes bug #1057

dmitrijs-pavlovs-dev opened this issue Jan 4, 2019 · 1 comment
Labels

Comments

@dmitrijs-pavlovs-dev
Copy link

dmitrijs-pavlovs-dev commented Jan 4, 2019

Hello, using quotes to define font name in font shorthand property seem to cause the property to disappear entirely. It seems to happens only during level 2 optimisation, even if all options are turned off by specifying all:false .

Environment

  • clean-css version - npm ls clean-css: 4.2.1
  • node.js version - node -v: 11.2.0
  • operating system: Mac OS

Configuration options

var CleanCSS = require('clean-css');
new CleanCSS({
          level: 2
          },
})

Input CSS

font: 60px/64px "Garamond WF";

Actual output CSS

Expected output CSS

font: 60px/64px "Garamond WF";
@qortex
Copy link

qortex commented Apr 4, 2019

Found a workaround: put a generic fallback name. As in angular/angular-cli#9648 (comment).

Here, using "Garamond WF", serif might work?

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

No branches or pull requests

3 participants