Revert "Handle invisible (display: none;) elements"

This reverts commit 440a81af07b47184b2876a1e0ffbcb8c33b3df9e.