We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSSOM/lib/parse.js
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.
The text was updated successfully, but these errors were encountered:
@papandreou @NV Any idea how we can resolve this?
Sorry, something went wrong.
Yeah, looks like the parser doesn't handle semicolons within url(...).
url(...)
One possible workaround is to add quotes around the url:
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400&display=swap');
Or you can percent-encode the semicolon:
@import url(https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300%3B400&display=swap);
Thanks for the workaround.
No branches or pull requests
CSSOM/lib/parse.js
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.
The text was updated successfully, but these errors were encountered: