Skip to content

Commit e28ebaf

Browse files
committed
Fix merging of nested media queries with not
There was a typo when this logic was ported over from Ruby Sass. Fixes #2425 Spec sass/sass-spec#1243
1 parent 17a83f6 commit e28ebaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cssize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ namespace Sass {
554554

555555
std::string m1 = std::string(mq1->is_restricted() ? "only" : mq1->is_negated() ? "not" : "");
556556
std::string t1 = mq1->media_type() ? mq1->media_type()->to_string(ctx.c_options) : "";
557-
std::string m2 = std::string(mq2->is_restricted() ? "only" : mq1->is_negated() ? "not" : "");
557+
std::string m2 = std::string(mq2->is_restricted() ? "only" : mq2->is_negated() ? "not" : "");
558558
std::string t2 = mq2->media_type() ? mq2->media_type()->to_string(ctx.c_options) : "";
559559

560560

0 commit comments

Comments
 (0)