DEV Community

loading...

Discussion on: Testing element dimensions without the browser

Collapse
lexlohr profile image
Alex Lohr

I had expected something more dramatic, e.g. a way to add a CSSOM to JSDOM that would allow actual calculations. Still, this method is good enough for testing and so, thanks for sharing!

Collapse
tmikeschu profile image
Mike Schutte Author

Oh yeah that's an interesting idea! I'll take the good enough for testing route for now as well 😊