Skip to content
New issue

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

Juice removed the @import style for style #477

Open
yongma16 opened this issue Feb 26, 2024 · 0 comments
Open

Juice removed the @import style for style #477

yongma16 opened this issue Feb 26, 2024 · 0 comments

Comments

@yongma16
Copy link

Code content:

<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Tomorrow:300,400,500,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css2?family=Goldman:wght@400;700" rel="stylesheet" type="text/css">
<style type="text/css">
  @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
  @import url(https://fonts.googleapis.com/css?family=Tomorrow:300,400,500,700);
  @import url(https://fonts.googleapis.com/css2?family=Goldman:wght@400;700);
</style>

After the run

result:

<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Tomorrow:300,400,500,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css2?family=Goldman:wght@400;700" rel="stylesheet" type="text/css">

Confusion:

Why does juice process code blocks that are reflected in the font style remove @import and leave the link tag?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant