We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1857b7c commit 1bb3dc1Copy full SHA for 1bb3dc1
lib/less/tree/element.js
@@ -19,7 +19,12 @@ tree.Element.prototype.eval = function (env) {
19
this.index);
20
};
21
tree.Element.prototype.toCSS = function (env) {
22
- return this.combinator.toCSS(env || {}) + (this.value.toCSS ? this.value.toCSS(env) : this.value);
+ var value = (this.value.toCSS ? this.value.toCSS(env) : this.value);
23
+ if (value == '' && this.combinator.value.charAt(0) == '&') {
24
+ return '';
25
+ } else {
26
+ return this.combinator.toCSS(env || {}) + value;
27
+ }
28
29
30
tree.Combinator = function (value) {
0 commit comments