less / less.ruby

Less Ruby — now at http://github.com/cowboyd/less.rb
Apache License 2.0
957 stars 69 forks source link

elements names can't be used for mixins names #182

Closed rabio closed 12 years ago

rabio commented 12 years ago

Documentation on the lesscss.org site states:

Any CSS class, id or element ruleset can be mixed-in that way.

but unfortunately this isn't true for elements.

For example code below produces syntax error when compiled:

div {
    display: table;
}

.some-class {
    div;
}
cloudhead commented 12 years ago

Ah yes, this was changed sometime ago for parsing reasons. I'll update the doc.