The counting traversal for lists and CSS counters follows the original DOM and is not shadow aware. This generates two buckets of use cases:
- counting elements belonging to the shadow sub-tree (related to upper boundary encapsulation)
- counting elements projected inside the shadow sub-tree (related to lower boundary encapsulation)
Use this bug to add tests for each of the two buckets.