From eabbabcd965869abcd0e047a4ff58de1308aae92 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 18 Oct 2024 23:32:44 +0000 Subject: [PATCH] Add tests for a plain CSS `@import url("foo")` (#2033) See sass/dart-sass#2397 --- spec/css/plain/import/in_css.hrx | 35 +++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/spec/css/plain/import/in_css.hrx b/spec/css/plain/import/in_css.hrx index 7431dfe21..bc8c990c4 100644 --- a/spec/css/plain/import/in_css.hrx +++ b/spec/css/plain/import/in_css.hrx @@ -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");