Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sasstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,22 @@ def test_regression_issue_11(self):
normalized = re.sub(r'\s+', '', actual)
assert normalized == '@media(max-width:3){body{color:black;}}'

def test_nested_media_extend(self):
actual = sass.compile(string='''
%foo {
color: red;
@media print {
color: black;
}
}
.hey {
@extend %foo;
}
''')
normalized = re.sub(r'\s+', '', actual)
expected = u'.hey{color:red;}@mediaprint{.hey{color:black;}}'
assert normalized == expected, '\n%r is not\n%r' % (normalized, expected)


class BuilderTestCase(unittest.TestCase):

Expand Down