Adjusted queryselector to operate on the SR

I assume that querying from document into a Shadow Root isn't expected
to work. Made the query to operate on the SR which fixes the failing
test(s).
Merge pull request #593 from KenjiBaheux/fixed-queryselector-in-styles-test

Adjusted queryselector to operate on the SR