We walk the entire DOM and check all selectors against all elements. Only id, class and tag name are checked right now. There's no ancestor stack or compound selectors. All in good time :^)
This will be responsible for matching selectors and creating LayoutStyle objects for the document and its elements.