I know from here that
The entire hierarchy of elements is considered when matching, including those outside the set of elements including baseElement and its descendants; in other words, selectors is first applied to the whole document, not the baseElement, to generate an initial list of potential elements. The resulting elements are then examined to see if they are descendants of baseElement.
I do not want to consider entire hierarchy, I want to consider only descendants of my baseElement. How can I do that? Thank you.