Position: Avoid reading overflow css on documents

Fixes #9533
Closes gh-1072