Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
.class1 {
&--class2 {
background:white;
}
}
should produce .class1--class2 { background:white}, but gives an error instead. Looks like it has something to do with html comments in less4j grammar.
the .parent--child classnames are quite common in BEM notation
.class1 { &--class2 { background:white; } }
should produce .class1--class2 { background:white}, but gives an error instead. Looks like it has something to do with html comments in less4j grammar.the .parent--child classnames are quite common in BEM notation