support comments. Add failing test case for when mixin call does not have parent selectors

This commit is contained in:
Luke Page
2013-03-21 16:51:04 +00:00
parent aa802bd84c
commit 493d6facf2
5 changed files with 25 additions and 14 deletions

View File

@@ -1,13 +1,9 @@
@media only screen and (max-width: 200px) {
width: 480px;
}
@media (max-width: 1200px) {
/* a comment */
}
/*
The media statements - 1 is invalid (no selector) and 1 is just a comment
We should band invalid media queries solving the 1st case and not treat comments as rules,
solving the 2nd issue.
The media statement above is invalid (no selector)
We should ban invalid media queries with properties and no selector?
*/
.visible {
color: red;
@@ -41,6 +37,10 @@
.b .c {
color: green;
}
.y {
pulled-in: yes;
}
/* comment pulled in */
.visible {
extend: test;
}