It could be great to allow to specify an individual nesting depth limit for each nestable thing type. In my code, the 2 level depth limit is sometimes problematic.
I consider this code is clean, but I know that a 3-level depth limit can allow a lot of abuses in other situations.
So I think a configuration like the following could be a compromise:
It could be great to allow to specify an individual nesting depth limit for each nestable thing type. In my code, the 2 level depth limit is sometimes problematic.
For example:
I consider this code is clean, but I know that a 3-level depth limit can allow a lot of abuses in other situations. So I think a configuration like the following could be a compromise:
Which allows the above code, but disallows :
Or, event if it doesn't make sens i think (I don't know if latest HTML5 pseudo-elements can be nested) :
The best would be to differentiate too event (
:hover
,:active
) and beacon (first-child
,last-child
) pseudo-classes.