hasmin icon indicating copy to clipboard operation
hasmin copied to clipboard

@font-face fields: unicode-range mangled, font-weight fails.

Open galenhuntington opened this issue 4 years ago • 1 comments

unicode-range is mangled:

Hasmin> minifyCSS "@font-face { font-family: serif; unicode-range: U+0-FF, U+2?? }"
Right "@font-face{font-family:serif;unicode-range:U 0 -FF,U 2 ?? }"

The latter syntax is not valid, and so the rule is ignored.

Also, font-weight inside of @font-face accepts two-argument values, but using the syntax causes an error:

Hasmin> minifyCSS "@font-face { font-family: serif; font-weight: 400 700; }"
Left "'{': Failed reading: satisfy"

galenhuntington avatar May 09 '20 09:05 galenhuntington

Thanks for reporting this! Unfortunately I'm quite short on time lately, so a pull request would be very much welcome. Otherwise, I'll fix this whenever I have some time, but can't currently make any promises as to when.

contivero avatar May 09 '20 16:05 contivero