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

removeUnusedAtRules has false positives if quotes don’t match #971

Closed
Lobstrosity opened this issue Sep 18, 2017 · 1 comment
Closed

Comments

@Lobstrosity
Copy link
Contributor

If a font family is multi-word and requires quote-wrapping and a rule uses different quote marks than the @font-face declaration does, it marks the @font-face as unused.

Environment

  • clean-css@4.1.8
  • node@6.9.1
  • macOS Sierra

Configuration options

{ level: { 2: { removeUnusedAtRules: true } } }

Input CSS

@font-face{font-family:"Two Words";}h1{font-family:'Two Words';}

Actual output CSS

h1{font-family:'Two Words'}

Expected output CSS

@font-face{font-family:"Two Words";}h1{font-family:'Two Words';}
@jakubpawlowicz
Copy link
Collaborator

👍 released in 4.1.9.

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

2 participants