juice icon indicating copy to clipboard operation
juice copied to clipboard

Juice removed the @import style for style

Open yongma16 opened this issue 1 year ago • 0 comments

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?

yongma16 avatar Feb 26 '24 09:02 yongma16