leafo/lessphp — Issue #142: Wrong inheritance on several classes in one time
Author: tankist
Created: 2011-10-11 22:58:53+00:00
State: open

The following code works in less.js, but don't work in lessphp:
```css
.foo {
color: red;
.bar {
font-family: sans-serif;
}
}

.foobar {
.foo .bar;
}
```
Expected:
```css
.foo { color:red; }
.foo .bar { font-family:sans-serif; }
.foobar { color:red; font-family:sans-serif; }
```

Also removing .bar from the .foobar inheritance works:
```css
.foo {
color: red;
.bar {
font-family: sans-serif;
}
}

.foobar {
.foo;
}
```
...but also is not as expected:
```css
.foo { color:red; }
.foo .bar { font-family:sans-serif; }
.foobar { color:red; }
.foobar .bar { font-family:sans-serif; }
```
Expected:
```css
.foo { color:red; }
.foo .bar { font-family:sans-serif; }
.foobar { color:red; }
```