Skip to content

Commit 0e6d8a6

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 5539920 commit 0e6d8a6

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
@@ -559,7 +559,7 @@ namespace Sass {
559559

560560
std::string m1 = std::string(mq1->is_restricted() ? "only" : mq1->is_negated() ? "not" : "");
561561
std::string t1 = mq1->media_type() ? mq1->media_type()->to_string(ctx.c_options) : "";
562-
std::string m2 = std::string(mq2->is_restricted() ? "only" : mq1->is_negated() ? "not" : "");
562+
std::string m2 = std::string(mq2->is_restricted() ? "only" : mq2->is_negated() ? "not" : "");
563563
std::string t2 = mq2->media_type() ? mq2->media_type()->to_string(ctx.c_options) : "";
564564

565565

0 commit comments

Comments
 (0)