Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

a test for media directives around properties.

  • Loading branch information...
commit ae162ce82caf1129c01f6c2e0b05d69f4fe17261 1 parent 7a45356
@chriseppstein authored
Showing with 39 additions and 0 deletions.
  1. +39 −0 test/sass/scss/scss_test.rb
View
39 test/sass/scss/scss_test.rb
@@ -1094,6 +1094,45 @@ def test_nested_media
CSS
assert_equal css_str, render(scss_str)
end
+
+ def test_nested_media_around_properties
+ scss_str = <<SCSS
+.outside {
+ color: red;
+ @media print {
+ color: black;
+ .inside {
+ @media nested {
+ border: 1px solid black;
+ }
+ }
+ }
+ background: blue;
+ .middle {
+ display: block;
+ }
+}
+SCSS
+ css_str = <<CSS
+.outside {
+ color: red; }
+
+@media print {
+ .outside {
+ color: black; } }
+
+@media (print) and (nested) {
+ .outside .inside {
+ border: 1px solid black; } }
+
+.outside {
+ background: blue; }
+ .outside .middle {
+ display: block; }
+CSS
+ assert_equal css_str, render(scss_str)
+ end
+
# Regression
def test_weird_added_space
Please sign in to comment.
Something went wrong with that request. Please try again.