Closed
Description
Originally reported in marp-team/marp-vscode#202.
Marp CLI has updated Puppeteer to v7.x in #319. It has a breaking change for page.screenshot()
. Marp CLI uses this for taking a image of slides while multi-image conversion and PPTX conversion.
⚠ BREAKING CHANGES
page.screenshot
makes a screenshot with the clip dimensions, not cutting it by the ViewPort size.- chromium: -
page.screenshot
cuts screenshot content by the ViewPort size, not ViewPort position.-- https://github.com/puppeteer/puppeteer/releases/tag/v7.0.0
We have taken screenshots by scrolling contents with fixed viewport position, but this change means that way is no longer working in the latest Chromium.
Lines 260 to 278 in 1ffcdf5
If trying to take screenshots through the latest Google Chrome Canary (>= v90), every slide pages will have only the first slide.
-- marp-team/marp-vscode#202 (reported by @jehunseo)