Skip to content

Commit

Permalink
Add tests for a plain CSS @import url("foo") (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Oct 18, 2024
1 parent a8ea330 commit eabbabc
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions spec/css/plain/import/in_css.hrx
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
<===> input.scss
@import "plain";
<===> string/input.scss
@use "plain";

<===> plain.css
<===> string/plain.css
@import "whatever";

<===> output.css
<===> string/output.css
@import "whatever";

<===> warning
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
<===>
================================================================================
<===> url/unquoted/input.scss
@use "plain";

More info and automated migrator: https://sass-lang.com/d/import
<===> url/unquoted/plain.css
@import url(whatever);

,
1 | @import "plain";
| ^^^^^^^
'
input.scss 1:9 root stylesheet
<===> url/unquoted/output.css
@import url(whatever);

<===>
================================================================================
<===> url/quoted/input.scss
@use "plain";

<===> url/quoted/plain.css
@import url("whatever");

<===> url/quoted/output.css
@import url("whatever");

0 comments on commit eabbabc

Please sign in to comment.