This is by design as the ancestor combinator ">" checks for the "logical" parent of an element (element.parent), not the "physical" parent (element.hierarchy.parent). In other words, the logical hierarchy goes through the ".contentContainer" and not the ".hierarchy".