Fix incorrect stripping of quotes in font-variation-settings (#1039)
authorJason Pamental <jason@rwt.io>
Wed, 1 Aug 2018 12:16:51 +0000 (08:16 -0400)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 1 Aug 2018 12:16:51 +0000 (14:16 +0200)
lib/optimizer/level-1/optimize.js

index d54fb53..13cfd8c 100644 (file)
@@ -336,7 +336,7 @@ function optimizeZeroUnits(name, value) {
 }
 
 function removeQuotes(name, value) {
-  if (name == 'content' || name.indexOf('font-feature-settings') > -1 || name.indexOf('grid-') > -1) {
+  if (name == 'content' || name.indexOf('font-variation-settings') > -1 || name.indexOf('font-feature-settings') > -1 || name.indexOf('grid-') > -1) {
     return value;
   }