Added more "categories" with describe so we can navigate the test file easier.
Added more tests to handle edge-cases around psudo-elements.
Improved scoping code
The logic for scoping was getting hard to read, made the logic easier to understand with less if statements.
Due to significant if statements we were loosing performance. I were hoping to improve performance with this fix. But it appears to be about the same. It might have improved it by a very small margin. 5%? We would need a real performance testing tool to statisticly assure the differance.
CSS Scoping: Improved tests
Improved scoping code