Nesting pseudo-elements inside pseudo-elements

The idea of nesting ::before and ::after pseudo-elements has been proposed; see this section of the Generated and Replaced Content module. However, that module has been abandoned pending a complete rewrite, so I wouldn’t hold my breath on this document ever receiving implementation until it’s republished. And even then, whether nesting content pseudo-elements will still be a thing is as yet unknown.

Leave a Comment