Skip to content

Commit

Permalink
Fix merging of nested media queries with not
Browse files Browse the repository at this point in the history
There was a typo when this logic was ported over from Ruby Sass.

Fixes sass#2425
Spec sass/sass-spec#1243
  • Loading branch information
xzyfer committed Mar 28, 2018
1 parent 5539920 commit 0e6d8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cssize.cpp
Expand Up @@ -559,7 +559,7 @@ namespace Sass {

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


Expand Down

0 comments on commit 0e6d8a6

Please sign in to comment.