-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a regression test for a
@media
bubbling bug (#1818)
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |