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
`@font-face {
font-family:"Some Sans";
font-weight: bold;
font-style: italic;
src:local("Some Sans Black Italic");
}
When local is any string that contains a color name with spaces on both sides of the string, the name gets replaced with the color value. If e.g. it just ends with a color name, the incorrect replacement does not happen.
Actual output CSS
@font-face{font-family:"Some Sans";font-weight:700;font-style:italic;src:local("Some Sans #000 Italic")}
Expected output CSS
@font-face{font-family:"Some Sans";font-weight:700;font-style:italic;src:local("Some Sans Black Italic")}
The text was updated successfully, but these errors were encountered:
The same problem occurs when you don't have quotes around the font-family, which is also valid CSS (and often the end output from minimizers like cssnano).
Environment
Configuration options
Input CSS
When
local
is any string that contains a color name with spaces on both sides of the string, the name gets replaced with the color value. If e.g. it just ends with a color name, the incorrect replacement does not happen.Actual output CSS
Expected output CSS
The text was updated successfully, but these errors were encountered: