You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that the new font-variation-settings CSS attribute is getting quotes stripped out when it should not (it should work just like font-feature-settings, which are handled properly). I found the line and included a change below.
Precheck
Do a quick search and make sure a bug has not yet been reported;
do a quick check if the bug still exists in the latest patch version;
I've found that the new
font-variation-settings
CSS attribute is getting quotes stripped out when it should not (it should work just likefont-feature-settings
, which are handled properly). I found the line and included a change below.Precheck
Environment
npm ls clean-css
: v4.1.11node -v
: v8.11.3Configuration options
Input CSS
Actual output CSS
Expected output CSS
I found the line in /lib/optimizer/level-1/optimize.js, line 337:
if (name == 'content' || name.indexOf('font-feature-settings') > -1 ||
if changed to this:
if (name == 'content' || name.indexOf('font-variation-settings') > -1 || name.indexOf('font-feature-settings') > -1 ||
fixes the issue
The text was updated successfully, but these errors were encountered: