Added unit test for referenced parent selectors

Name: Parent selectors not working within mixins using (reference)
Number: #1979
This commit is contained in:
jurcovicovam
2015-01-23 18:42:02 +01:00
parent 8f1c35a814
commit dc2b685194
3 changed files with 17 additions and 1 deletions

View File

@@ -74,3 +74,9 @@ div#id.class[a=1][b=2].class:not(1) {
color: red;
}
}
.test {
color: red;
}
.test:first-child {
color: blue;
}

View File

@@ -19,3 +19,4 @@
.class:extend(.class all) {
}
.mixin-with-nested-selectors();

View File

@@ -49,7 +49,7 @@
color: red;
}
}
//https://github.com/less/less.js/issues/2359
@supports (something: else) {
.class {
something: else;
@@ -63,3 +63,12 @@
something: else;
}
}
//https://github.com/less/less.js/issues/1979
.mixin-with-nested-selectors() {
.test {
color: red;
&:first-child {
color: blue;
}
}
}