Skip to content

Commit

Permalink
Add a regression test for a @media bubbling bug (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Aug 29, 2022
1 parent 2bdc199 commit caf21d7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/css/media/bubbling.hrx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<===> unmergeable_and_merged/options.yml
:ignore_for:
- libsass

<===> unmergeable_and_merged/input.scss
// Regression test for sass/sass#3384. In Dart Sass, this caused a bug because
// we were asking "has this media query been merged?" to determine whether to
// bubble it up through parent queries, disregarding whether it had been merged
// with *that particular query*.
@media not a {
@media (b) {
@media (c) {
d {e: f}
}
}
}

<===> unmergeable_and_merged/output.css
@media not a {
@media (b) and (c) {
d {
e: f;
}
}
}

0 comments on commit caf21d7

Please sign in to comment.