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 17a83f6 commit e28ebaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cssize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,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 e28ebaf

Please sign in to comment.