/* a rule with only comments: the selector block is still emitted (less semantics) */
.a {
/* only comment */
}
/* comment + child rule: the comment stays in the parent block, which must not be dropped */
.b {
/* c */
.inner {
x: 1;
}
}
/* last statement inside a child rule: whitespace before `}` is trimmed */
.c {
.inner {
y: 2;
}
}
/* empty blocks are not emitted */
.d {
}
/* less keeps whitespace before the semicolon */
.e {
padding: 10px ;
}
/* comments between child rules are hoisted into the parent block */
.f {
.i {
z: 3;
}
/* mid */
.j {
w: 4;
}
}