diff --git a/crates/turbopack-core/src/reference_type.rs b/crates/turbopack-core/src/reference_type.rs index 012536f0cfd2b..d8adea7770510 100644 --- a/crates/turbopack-core/src/reference_type.rs +++ b/crates/turbopack-core/src/reference_type.rs @@ -116,6 +116,43 @@ impl ImportContext { Ok(ImportContext::new(layers, media, supports)) } + + #[turbo_tasks::function] + pub fn modifier(&self) -> Result> { + use std::fmt::Write; + let mut modifier = String::new(); + if !self.layers.is_empty() { + for (i, layer) in self.layers.iter().enumerate() { + if i > 0 { + modifier.push(' '); + } + write!(modifier, "layer({})", layer)? + } + } + if !self.media.is_empty() { + if !modifier.is_empty() { + modifier.push(' '); + } + for (i, media) in self.media.iter().enumerate() { + if i > 0 { + modifier.push_str(" and "); + } + modifier.push_str(media); + } + } + if !self.supports.is_empty() { + if !modifier.is_empty() { + modifier.push(' '); + } + for (i, supports) in self.supports.iter().enumerate() { + if i > 0 { + modifier.push(' '); + } + write!(modifier, "supports({})", supports)? + } + } + Ok(Vc::cell(modifier)) + } } #[turbo_tasks::value(serialization = "auto_for_input")] diff --git a/crates/turbopack-css/src/asset.rs b/crates/turbopack-css/src/asset.rs index 3f02ba076c9e0..901f928393ea9 100644 --- a/crates/turbopack-css/src/asset.rs +++ b/crates/turbopack-css/src/asset.rs @@ -25,8 +25,12 @@ use crate::{ }; #[turbo_tasks::function] -fn modifier() -> Vc { - Vc::cell("css".to_string()) +fn modifier(use_swc_css: bool) -> Vc { + if use_swc_css { + Vc::cell("swc css".to_string()) + } else { + Vc::cell("css".to_string()) + } } #[turbo_tasks::value] @@ -107,10 +111,15 @@ impl ProcessCss for CssModuleAsset { impl Module for CssModuleAsset { #[turbo_tasks::function] fn ident(&self) -> Vc { - self.source + let mut ident = self + .source .ident() - .with_modifier(modifier()) - .with_layer(self.asset_context.layer()) + .with_modifier(modifier(self.use_swc_css)) + .with_layer(self.asset_context.layer()); + if let Some(import_context) = self.import_context { + ident = ident.with_modifier(import_context.modifier()) + } + ident } #[turbo_tasks::function] diff --git a/crates/turbopack-css/src/chunk/mod.rs b/crates/turbopack-css/src/chunk/mod.rs index 8bb284a612aa5..ba8bd0b062f38 100644 --- a/crates/turbopack-css/src/chunk/mod.rs +++ b/crates/turbopack-css/src/chunk/mod.rs @@ -78,33 +78,11 @@ impl CssChunk { } writeln!(body, "/* {} */", id)?; - let mut close: Vec = vec![]; - if let Some(import_context) = content.import_context { - let import_context = &*import_context.await?; - if !&import_context.layers.is_empty() { - writeln!(body, "@layer {} {{", import_context.layers.join("."))?; - close.push("}\n".to_owned()); - } - if !&import_context.media.is_empty() { - writeln!(body, "@media {} {{", import_context.media.join(" and "))?; - close.push("}\n".to_owned()); - } - if !&import_context.supports.is_empty() { - writeln!( - body, - "@supports {} {{", - import_context.supports.join(" and ") - )?; - close.push("}\n".to_owned()); - } - } + let close = write_import_context(&mut body, content.import_context).await?; body.push_source(&content.inner_code, content.source_map.map(Vc::upcast)); - writeln!(body)?; - for line in &close { - body.push_source(&Rope::from(line.to_string()), None); - } + writeln!(body, "{close}")?; writeln!(body)?; } @@ -142,6 +120,33 @@ impl CssChunk { } } +pub async fn write_import_context( + body: &mut impl std::io::Write, + import_context: Option>, +) -> Result { + let mut close = String::new(); + if let Some(import_context) = import_context { + let import_context = &*import_context.await?; + if !&import_context.layers.is_empty() { + writeln!(body, "@layer {} {{", import_context.layers.join("."))?; + close.push_str("\n}"); + } + if !&import_context.media.is_empty() { + writeln!(body, "@media {} {{", import_context.media.join(" and "))?; + close.push_str("\n}"); + } + if !&import_context.supports.is_empty() { + writeln!( + body, + "@supports {} {{", + import_context.supports.join(" and ") + )?; + close.push_str("\n}"); + } + } + Ok(close) +} + #[turbo_tasks::value] pub struct CssChunkContent { pub chunk_items: Vec>>, diff --git a/crates/turbopack-css/src/chunk/single_item_chunk/chunk.rs b/crates/turbopack-css/src/chunk/single_item_chunk/chunk.rs index 29f1168d840e0..c6575fa543c41 100644 --- a/crates/turbopack-css/src/chunk/single_item_chunk/chunk.rs +++ b/crates/turbopack-css/src/chunk/single_item_chunk/chunk.rs @@ -14,7 +14,7 @@ use turbopack_core::{ }; use super::source_map::SingleItemCssChunkSourceMapAsset; -use crate::chunk::CssChunkItem; +use crate::chunk::{write_import_context, CssChunkItem}; /// A CSS chunk that only contains a single item. This is used for selectively /// loading CSS modules that are part of a larger chunk in development mode, and @@ -54,7 +54,10 @@ impl SingleItemCssChunk { writeln!(code, "/* {} */", id)?; let content = this.item.content().await?; + let close = write_import_context(&mut code, content.import_context).await?; + code.push_source(&content.inner_code, content.source_map.map(Vc::upcast)); + write!(code, "{close}")?; if *this .chunking_context diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css similarity index 62% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css index dcfe90559e39d..49b6d5bb68962 100644 --- a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css @@ -1,6 +1,6 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css, ) */ .bar { background-color: green; } -/*# sourceMappingURL=a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css similarity index 79% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css index 99116da91fb6e..63b8726a9fd50 100644 --- a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css +++ b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css @@ -1,13 +1,13 @@ @import "https://example.com/stylesheet1.css"; @import "https://example.com/withquote\".css"; @import "https://example.com/stylesheet2.css"; -/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css, ) */ .foo { background-color: red; } -/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css, ) */ .bar { background-color: green; } @@ -19,4 +19,4 @@ body { } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css.map b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css.map rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_137d17.js b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_273bd7.js similarity index 82% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_137d17.js rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_273bd7.js index 49d34126a0c46..6906e555ef753 100644 --- a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_137d17.js +++ b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_273bd7.js @@ -1,11 +1,11 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_137d17.js", + "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_273bd7.js", {}, ]); (globalThis.TURBOPACK_CHUNK_LISTS = globalThis.TURBOPACK_CHUNK_LISTS || []).push({ - "path": "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_137d17.js", + "path": "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_273bd7.js", "chunks": [ - "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css", + "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css", "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_0e8055.js" ], "source": "entry" diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js deleted file mode 100644 index 64d8fcc548eea..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js +++ /dev/null @@ -1,6 +0,0 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js", - {}, - {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_b63dbc._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css","output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css","output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_7d7e1c.css"]},"output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_0e8055.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.js [test] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js new file mode 100644 index 0000000000000..66a6fb550b78e --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js @@ -0,0 +1,6 @@ +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ + "output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js", + {}, + {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_90d01b._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css, )","[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/withduplicateurl.css [test] (css, )","[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css","output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css","output/a587c_tests_snapshot_css_absolute-uri-import_input_withduplicateurl_d96429.css"]},"output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_0e8055.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/index.js [test] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js.map b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_7cdbb4.js.map rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_index_9f23d7.js.map diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css similarity index 63% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css index 12785d97e0b6e..808248ce5528c 100644 --- a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css @@ -1,6 +1,6 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/input/other.css [test] (css, ) */ .foo { background-color: red; } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/absolute-uri-import/output/crates_turbopack-tests_tests_snapshot_css_absolute-uri-import_input_other_d96429.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css index 27ba1f971e344..d0fbf6420012b 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css @@ -1,4 +1,5 @@ @import url("./c.css") layer(foo) (orientation: landscape); +@import url("./c.css") layer(bar) (orientation: portrait); .imported { color: orange; diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css deleted file mode 100644 index 3cebce8e76798..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css +++ /dev/null @@ -1,43 +0,0 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css) */ -@layer layer.foo { -@media print and (orientation: landscape) { -@supports not(display: inline-grid) and font-format(woff2) { -.imported { - color: red; -} - -} -} -} - -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css) */ -@layer layer { -@media print { -@supports not(display: inline-grid) and font-format(woff2) { -.imported { - color: orange; -} - -} -} -} - -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css) */ -@layer layer { -@media print { -@supports not(display: inline-grid) { -.imported { - color: #0ff; -} - -} -} -} - -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css [test] (css) */ -.style { - color: #ff0; -} - - -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css new file mode 100644 index 0000000000000..a384cb0b47659 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css @@ -0,0 +1,55 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(foo) print and (orientation: landscape) supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer.foo { +@media print and (orientation: landscape) { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: red; +} + +} +} +} + +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(bar) print and (orientation: portrait) supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer.bar { +@media print and (orientation: portrait) { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: red; +} + +} +} +} + +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css, layer(layer) print supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer { +@media print { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: orange; +} + +} +} +} + +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css, layer(layer) print supports(not(display: inline-grid))) */ +@layer layer { +@media print { +@supports not(display: inline-grid) { +.imported { + color: #0ff; +} + +} +} +} + +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css [test] (css) */ +.style { + color: #ff0; +} + + +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css.map similarity index 71% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css.map rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css.map index 44fb74619c8a9..9b2e5724a701c 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css.map +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css.map @@ -4,10 +4,12 @@ "sections": [ {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css"],"sourcesContent":[".imported {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}, {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, - {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css"],"sourcesContent":["@import url(\"./c.css\") layer(foo) (orientation: landscape);\n\n.imported {\n color: orange;\n}\n"],"names":[],"mappings":"AAEA"}}, + {"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css"],"sourcesContent":[".imported {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}, {"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, - {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css"],"sourcesContent":["@import url(\"./b.css\") supports(font-format(woff2));\n\n.imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAEA"}}, + {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css"],"sourcesContent":["@import url(\"./c.css\") layer(foo) (orientation: landscape);\n@import url(\"./c.css\") layer(bar) (orientation: portrait);\n\n.imported {\n color: orange;\n}\n"],"names":[],"mappings":"AAGA"}}, {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, - {"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css"],"sourcesContent":["@import url(\"./a.css\") layer(layer) supports(not(display: inline-grid)) print;\n\n.style {\n color: yellow;\n}\n"],"names":[],"mappings":"AAEA"}}, - {"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] + {"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css"],"sourcesContent":["@import url(\"./b.css\") supports(font-format(woff2));\n\n.imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAEA"}}, + {"offset": {"line": 43, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}, + {"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css"],"sourcesContent":["@import url(\"./a.css\") layer(layer) supports(not(display: inline-grid)) print;\n\n.style {\n color: yellow;\n}\n"],"names":[],"mappings":"AAEA"}}, + {"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] } \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css deleted file mode 100644 index 697327267ec3b..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css +++ /dev/null @@ -1,6 +0,0 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css) */ -.imported { - color: #0ff; -} - -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css new file mode 100644 index 0000000000000..96003109c0291 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css @@ -0,0 +1,12 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css, layer(layer) print supports(not(display: inline-grid))) */ +@layer layer { +@media print { +@supports not(display: inline-grid) { +.imported { + color: #0ff; +} + +} +} +} +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css.map similarity index 85% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css.map index 675caa82a753d..709447e14305f 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css.map +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css"],"sourcesContent":["@import url(\"./b.css\") supports(font-format(woff2));\n\n.imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAEA"}}, - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css"],"sourcesContent":["@import url(\"./b.css\") supports(font-format(woff2));\n\n.imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAEA"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] } \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css deleted file mode 100644 index 228fd290a7541..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css +++ /dev/null @@ -1,6 +0,0 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css) */ -.imported { - color: orange; -} - -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css new file mode 100644 index 0000000000000..f9142528f040e --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css @@ -0,0 +1,12 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css, layer(layer) print supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer { +@media print { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: orange; +} + +} +} +} +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css.map similarity index 53% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css.map index 7f9c9d3153fc3..458051a6c2630 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css.map +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css"],"sourcesContent":["@import url(\"./c.css\") layer(foo) (orientation: landscape);\n\n.imported {\n color: orange;\n}\n"],"names":[],"mappings":"AAEA"}}, - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css"],"sourcesContent":["@import url(\"./c.css\") layer(foo) (orientation: landscape);\n@import url(\"./c.css\") layer(bar) (orientation: portrait);\n\n.imported {\n color: orange;\n}\n"],"names":[],"mappings":"AAGA"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] } \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css new file mode 100644 index 0000000000000..bf446c395d067 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css @@ -0,0 +1,12 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(bar) print and (orientation: portrait) supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer.bar { +@media print and (orientation: portrait) { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: red; +} + +} +} +} +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css.map similarity index 83% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css.map index b256ea3c721c2..c9a5e5a02aaec 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css.map +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css.map @@ -2,6 +2,6 @@ "version": 3, "sources": [], "sections": [ - {"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css"],"sourcesContent":[".imported {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}, - {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css"],"sourcesContent":[".imported {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] } \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css deleted file mode 100644 index d3c40dd607fce..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css +++ /dev/null @@ -1,6 +0,0 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css) */ -.imported { - color: red; -} - -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css new file mode 100644 index 0000000000000..03cb4b9256836 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css @@ -0,0 +1,12 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(foo) print and (orientation: landscape) supports(not(display: inline-grid)) supports(font-format(woff2))) */ +@layer layer.foo { +@media print and (orientation: landscape) { +@supports not(display: inline-grid) and font-format(woff2) { +.imported { + color: red; +} + +} +} +} +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css.map new file mode 100644 index 0000000000000..c9a5e5a02aaec --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css"],"sourcesContent":[".imported {\n color: red;\n}\n"],"names":[],"mappings":"AAAA"}}, + {"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] +} \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_095dda.js b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_5f37ae.js similarity index 82% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_095dda.js rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_5f37ae.js index a8fadd993a5c4..6a8a2dd8f6798 100644 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_095dda.js +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_5f37ae.js @@ -1,11 +1,11 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_095dda.js", + "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_5f37ae.js", {}, ]); (globalThis.TURBOPACK_CHUNK_LISTS = globalThis.TURBOPACK_CHUNK_LISTS || []).push({ - "path": "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_095dda.js", + "path": "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_5f37ae.js", "chunks": [ - "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css", + "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css", "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_356166.js" ], "source": "entry" diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js new file mode 100644 index 0000000000000..76360b13e86c2 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js @@ -0,0 +1,6 @@ +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ + "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js", + {}, + {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_86e399._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(foo) print and (orientation: landscape) supports(not(display: inline-grid)) supports(font-format(woff2)))","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css, layer(layer) layer(bar) print and (orientation: portrait) supports(not(display: inline-grid)) supports(font-format(woff2)))","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css, layer(layer) print supports(not(display: inline-grid)) supports(font-format(woff2)))","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css, layer(layer) print supports(not(display: inline-grid)))","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_style_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_823b12.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_163c6a.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_dc1da6.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_bf62fc.css"]},"output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_356166.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/index.js [test] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js.map b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js.map rename to crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_e6e7e4.js.map diff --git a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js b/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js deleted file mode 100644 index 8b90afa3d9891..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/chained-attributes/output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js +++ /dev/null @@ -1,6 +0,0 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_f374d8.js", - {}, - {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_7c9d25._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/c.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/b.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/a.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/style.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_style_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_c_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_b_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_a_7d7e1c.css"]},"output/crates_turbopack-tests_tests_snapshot_css_chained-attributes_input_index_356166.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/chained-attributes/input/index.js [test] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css similarity index 91% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css index 672a849bd35fb..1ff87386b2b2a 100644 --- a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css @@ -1,10 +1,10 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, ) */ .imported { color: #0ff; } -/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, layer(layer) print) */ @layer layer { @media print { .imported { @@ -50,4 +50,4 @@ } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css.map b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css.map rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css new file mode 100644 index 0000000000000..d3c39213b4951 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css @@ -0,0 +1,10 @@ +/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, layer(layer) print) */ +@layer layer { +@media print { +.imported { + color: #0ff; +} + +} +} +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css.map b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css.map new file mode 100644 index 0000000000000..80ad6e6d324b5 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": [], + "sections": [ + {"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["[project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css"],"sourcesContent":[".imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAAA"}}, + {"offset": {"line": 6, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}] +} \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css similarity index 70% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css index e47c3b2500920..a5bb75e575468 100644 --- a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css @@ -1,6 +1,6 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, ) */ .imported { color: #0ff; } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_a57154.js b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_8d4eeb.js similarity index 89% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_a57154.js rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_8d4eeb.js index 3df5598c11fa8..163f8886395a1 100644 --- a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_a57154.js +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_8d4eeb.js @@ -1,11 +1,11 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_a57154.js", + "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_8d4eeb.js", {}, ]); (globalThis.TURBOPACK_CHUNK_LISTS = globalThis.TURBOPACK_CHUNK_LISTS || []).push({ - "path": "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_a57154.js", + "path": "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_8d4eeb.js", "chunks": [ - "output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css", + "output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css", "output/crates_turbopack-tests_tests_snapshot_css_css_input_34944c._.js" ], "source": "entry" diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js deleted file mode 100644 index a357f7c068cc5..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js +++ /dev/null @@ -1,6 +0,0 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js", - {}, - {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_css_input_64af3a._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/style.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_style_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_style_module_7d7e1c.css","output/8697f_foo_style_7d7e1c.css","output/8697f_foo_style_module_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_7d7e1c.css"]},"output/crates_turbopack-tests_tests_snapshot_css_css_input_34944c._.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/css/input/index.js [test] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js new file mode 100644 index 0000000000000..baea21162d21c --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js @@ -0,0 +1,6 @@ +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ + "output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js", + {}, + {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_css_input_f3a64b._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, )","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css [test] (css, layer(layer) print)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/style.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css)"],"moduleChunks":["output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_style_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_style_module_7d7e1c.css","output/8697f_foo_style_7d7e1c.css","output/8697f_foo_style_module_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_css_input_imported_9f97d9.css"]},"output/crates_turbopack-tests_tests_snapshot_css_css_input_34944c._.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/css/input/index.js [test] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js.map b/crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_c018bc.js.map rename to crates/turbopack-tests/tests/snapshot/css/css/output/crates_turbopack-tests_tests_snapshot_css_css_input_index_d0cfb6.js.map diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css similarity index 63% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css index 5dfacb151db31..232595d8bdfdb 100644 --- a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css @@ -1,6 +1,6 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css, ) */ .bar { background-color: green; } -/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css similarity index 75% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css index 01f2a3db2c1c2..a3648aefb5c93 100644 --- a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css +++ b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css @@ -1,10 +1,10 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css, ) */ .bar { background-color: green; } -/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css, ) */ .foo { background-color: red; } @@ -16,4 +16,4 @@ body { } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css.map b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css.map rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js deleted file mode 100644 index 6210f9dd73729..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js +++ /dev/null @@ -1,6 +0,0 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js", - {}, - {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css)","[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.css [test] (css)"],"moduleChunks":["output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_7d7e1c.css","output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_7d7e1c.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css"]},"output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_c2ad30.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.js [test] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_a0e1a8.js b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f04144.js similarity index 82% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_a0e1a8.js rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f04144.js index 456acb4153f52..033b1756eb4dd 100644 --- a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_a0e1a8.js +++ b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f04144.js @@ -1,11 +1,11 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_a0e1a8.js", + "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f04144.js", {}, ]); (globalThis.TURBOPACK_CHUNK_LISTS = globalThis.TURBOPACK_CHUNK_LISTS || []).push({ - "path": "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_a0e1a8.js", + "path": "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f04144.js", "chunks": [ - "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_99b643._.css", + "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css", "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_c2ad30.js" ], "source": "entry" diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js new file mode 100644 index 0000000000000..a4715c76e7503 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js @@ -0,0 +1,6 @@ +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ + "output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js", + {}, + {"otherChunks":[{"path":"output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_dc7e6c._.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/another.css [test] (css, )","[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css, )","[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.css [test] (css)"],"moduleChunks":["output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_7d7e1c.css","output/79fb1_turbopack-tests_tests_snapshot_css_relative-uri-import_input_another_d96429.css","output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css"]},"output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_c2ad30.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/index.js [test] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js.map b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_8c26d0.js.map rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_index_f43cc9.js.map diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css similarity index 63% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css index 9cc9e9731cc78..cbb253e47b5cd 100644 --- a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css @@ -1,6 +1,6 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/input/other.css [test] (css, ) */ .foo { background-color: red; } -/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/relative-uri-import/output/crates_turbopack-tests_tests_snapshot_css_relative-uri-import_input_other_d96429.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js new file mode 100644 index 0000000000000..af82544c1ef47 --- /dev/null +++ b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js @@ -0,0 +1,6 @@ +(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ + "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js", + {}, + {"otherChunks":[{"path":"output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (swc css)"],"moduleChunks":["output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css"]},"output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_c70a2c.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/index.js [test] (ecmascript)"]} +]); +// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js.map b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js.map rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_8263e6.js.map diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js deleted file mode 100644 index c6eb074f6a36f..0000000000000 --- a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js +++ /dev/null @@ -1,6 +0,0 @@ -(globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_9f5f8d.js", - {}, - {"otherChunks":[{"path":"output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css","included":["[project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (css)"],"moduleChunks":["output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css"]},"output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_c70a2c.js"],"runtimeModuleIds":["[project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/index.js [test] (ecmascript)"]} -]); -// Dummy runtime \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_7e65d9.js b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_d5c31d.js similarity index 81% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_7e65d9.js rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_d5c31d.js index 573085bfcb1e1..ffc0e5822fb88 100644 --- a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_7e65d9.js +++ b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_d5c31d.js @@ -1,11 +1,11 @@ (globalThis.TURBOPACK = globalThis.TURBOPACK || []).push([ - "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_7e65d9.js", + "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_d5c31d.js", {}, ]); (globalThis.TURBOPACK_CHUNK_LISTS = globalThis.TURBOPACK_CHUNK_LISTS || []).push({ - "path": "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_7e65d9.js", + "path": "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_d5c31d.js", "chunks": [ - "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css", + "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css", "output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_index_c70a2c.js" ], "source": "entry" diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css similarity index 70% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css index 78d752a246928..9ff935685d88f 100644 --- a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css +++ b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css @@ -1,7 +1,7 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (swc css) */ @supports ((-webkit-mask: url("")) or (mask: url(""))) { .supports-url-in-query { color: red; } } -/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css.map*/ \ No newline at end of file +/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css.map b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_7d7e1c.css.map rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_4b6496.css.map diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css similarity index 70% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css index 7f5959b52e633..945b18d49eb9d 100644 --- a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css +++ b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css @@ -1,8 +1,8 @@ -/* [project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (css) */ +/* [project]/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/input/style.css [test] (swc css) */ @supports ((-webkit-mask: url("")) or (mask: url(""))) { .supports-url-in-query { color: red; } } -/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css.map*/ \ No newline at end of file +/*# sourceMappingURL=79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css.map*/ \ No newline at end of file diff --git a/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css.map b/crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css.map similarity index 100% rename from crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_d70fa1.css.map rename to crates/turbopack-tests/tests/snapshot/css/url-in-supports-query/output/79fb1_turbopack-tests_tests_snapshot_css_url-in-supports-query_input_style_a5a67a.css.map