You need to pre-sort the selectors by their .Sheet field to create thecascading effect of CSS
Descendants selector checks for any parent to havethe next tag, but doesn't check the main tag if it did and the main didn'thave the selector then it would move up. So instead the main tag is skippeduntil the next check.
QuerySelector is a Node method to select an element using a CSS selector
QuerySelectorAll is a Node method to select all matching elements using a CSS selector