Open
Description
Lines 333 to 358 in a469aae
This fails for import rules for fonts which have multiple font weights.
Example :- @import url(https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400&display=swap);
I get the error:- ")" not found.
I am guessing it's due to semicolon being encountered first before closing the bracket.
Activity
RahulLanjewar93 commentedon Jan 31, 2023
@papandreou @NV Any idea how we can resolve this?
papandreou commentedon Jan 31, 2023
Yeah, looks like the parser doesn't handle semicolons within
url(...)
.One possible workaround is to add quotes around the url:
Or you can percent-encode the semicolon:
RahulLanjewar93 commentedon Feb 1, 2023
Thanks for the workaround.