Before moving to my question, i know how the :before and :after selectors work. (not a duplicate of what is ::before or ::after expression). My question is in regards to use.

This explains the order above: Sublevel before executes before top beforeeach because it is a before hook. And with after …