Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@media query with interpolant renders incorrectly #803

Closed
xzyfer opened this issue Jan 5, 2015 · 0 comments · Fixed by #804
Closed

@media query with interpolant renders incorrectly #803

xzyfer opened this issue Jan 5, 2015 · 0 comments · Fixed by #804

Comments

@xzyfer
Copy link
Contributor

xzyfer commented Jan 5, 2015

A regression was introduced in #800 which causes @media #{foo} to render incorrect if $foo was a media query list.

$query-string: "(min-width: 0) and (max-width: 599px),  (min-width: 600px) and (max-width: 899px)";
@media #{$query-string} {
  .foo {
    content: bar;
  }
}

expected

@media (min-width: 0) and (max-width: 599px), (min-width: 600px) and (max-width: 899px) {
  foo {
    bar: baz; } }

actual

@media (min-width: 0) and (max-width: 599px) {
  foo {
    bar: baz; } }

Specs added sass/sass-spec#223.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant