Multithreaded multiblock mixins in lessphp

When converting some code to lessphp from the classic code less; the incompatibility that I found from the classic less css is that there is no support for multi-block mixins with nesting levels> 2. The classic less seems to fully support mixins with many nested blocks in them.

Is this intentional - supporting only two levels of nesting inside the mix?

Example:

 @some_mixin{
  height: 22px;
    ul{
    height: 20px;
    li{
    height: 10px;
    }
    }
 }

what happens above with lessphp is that there is a third level of nesting; which contains the css code for the li tag is ignored completely !

+3
source share
1
+2

Source: https://habr.com/ru/post/1772002/


All Articles