OnetapInc / chromy

Chromy is a library for operating headless chrome. 🍺🍺🍺
MIT License
606 stars 41 forks source link

Viewport (vh) units incorrect in screenshots #117

Open matthew-dean opened 6 years ago

matthew-dean commented 6 years ago

When using Backstop, which automates using either Puppeteer or Chromy, I discovered that with Chromy, anything using vh units would size to nearly twice its height. When automating Chromium using Puppeteer, this doesn't happen.

However, Puppeteer has other capturing bugs w/ Backstop that would make me still prefer to use Chromy. It's really only the vh bug that's an issue.

Attached is the difference between capturing a selector in Chromy (left) and Puppeteer (right).

chromy

matthew-dean commented 6 years ago

See this comment: https://github.com/garris/BackstopJS/issues/820

Is no one looking at this?