mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
b0b22199f9
Currently, `elementHandle.screenshot` passes bounding box into the `page.captureScreenshot` method. This is wrong since `captureScreenshot` accepts viewport, not bounding box. This patch uses layout metrics to convert bounding box into viewport. Fixes #1315. |
||
---|---|---|
.. | ||
grid-cell-0.png | ||
grid-cell-1.png | ||
grid-cell-2.png | ||
grid-cell-3.png | ||
mock-binary-response.png | ||
nested-frames.txt | ||
reconnect-nested-frames.txt | ||
screenshot-clip-odd-size.png | ||
screenshot-clip-rect.png | ||
screenshot-element-bounding-box.png | ||
screenshot-element-padding-border.png | ||
screenshot-element-rotate.png | ||
screenshot-element-scrolled-into-view.png | ||
screenshot-grid-fullpage.png | ||
screenshot-offscreen-clip.png | ||
screenshot-sanity.png | ||
transparent.png |