Pushing BEM to the next level with Sass 3.4

With the release of the new parent selector in Sass 3.4 it is possible to deal with your selector as you do with lists. I thought this must be damn usable for your BEM (block element modifier) mixins.

.test {
@debug type-of(&); //returns list
}

Problems with the parent selector in Sass 3.3

The parent selector has already been reworked in Sass 3.3. Since then you could combine the selector with any kind of string. This article about BEM in Sass 3.3 does a nice job in…