From 752860ecc5f28a45bd9893b9c4f83a9e798d887b Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Tue, 11 Apr 2023 15:44:12 -0700 Subject: [PATCH] Don't separate out media queries after one has bubbled (#1898) See sass/dart-sass#777 --- spec/css/media/bubbling.hrx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/spec/css/media/bubbling.hrx b/spec/css/media/bubbling.hrx index a2203de649..14afe78578 100644 --- a/spec/css/media/bubbling.hrx +++ b/spec/css/media/bubbling.hrx @@ -23,3 +23,31 @@ } } } + +<===> +================================================================================ +<===> preserve_merge_after_bubble/input.scss +// Regression test for sass/dart-sass#777 +@media (a: b) { + @media (c: d) { + e {f: g} + } + + h {i: j} + k {l: m} +} + +<===> preserve_merge_after_bubble/output.css +@media (a: b) and (c: d) { + e { + f: g; + } +} +@media (a: b) { + h { + i: j; + } + k { + l: m; + } +}