Permalink
Browse files

A test case to ensure that parent references work across @media blocks.

  • Loading branch information...
1 parent ae162ce commit d63a616f56c46a16fe76633c684a1d88081003e1 @chriseppstein committed Sep 23, 2010
Showing with 18 additions and 0 deletions.
  1. +18 −0 test/sass/scss/scss_test.rb
@@ -1133,6 +1133,24 @@ def test_nested_media_around_properties
assert_equal css_str, render(scss_str)
end
+ def test_media_with_parent_references
+ scss_str = <<SCSS
+.outside {
+ @media print {
+ &.inside {
+ border: 1px solid black;
+ }
+ }
+}
+SCSS
+ css_str = <<CSS
+@media print {
+ .outside.inside {
+ border: 1px solid black; } }
+CSS
+ assert_equal css_str, render(scss_str)
+ end
+
# Regression
def test_weird_added_space

0 comments on commit d63a616

Please sign in to comment.