DEV Community

Discussion on: How to Find Ghost CSS Elements

Collapse
 
lexlohr profile image
Alex Lohr • Edited

You forgot visibility: visible and opacity: 1 - and the same on :before and :after. Also, you could iterate over all nodes and use node.getBoundingClientRect() to find the ones that are as wide or wider as document.body.