postcss / autoprefixer

Parse CSS and add vendor prefixes to rules by Can I Use
https://twitter.com/autoprefixer
MIT License
21.58k stars 1.25k forks source link

Normalize font-family quotes for LG browser compatibility? #1455

Closed nex3 closed 2 years ago

nex3 commented 2 years ago

LG's smart TV browser has a bug where it won't recognize a custom @font-face if the font-family name doesn't use the same quotes as the original definition. For example:

@font-face {
  font-family: "Foo Bar Baz";
  // ...
}

.classname {
  font: Foo Bar Baz; // This will be ignored
  font: "Foo Bar Baz"; // This will be recognized
}

Is it worth Autoprefixer automatically normalizing the quotes for these font names to avoid such an issue?

ai commented 2 years ago

Sorry, not task for Autoprefixer since it is not prefixes.

Hard to find a good project for it. Maybe custom PostCSS plugin?