7 ms·
That's not the behavior I'm seeing (with Puppeteer). Any elements positioned relative to the viewport stay within the area specified by screen size (eg. 1200x80
by wereHamster 2y ago
That's not the behavior I'm seeing (with Puppeteer). Any elements positioned relative to the viewport stay within the area specified by screen size (eg. 1200x800) which is usually the top of the page. If the browser would scroll down these would also move down (and potentially appear multiple times in the image). Also intersection observers which are further down on the page do not trigger when I do a full-page screenshot (eg. an element which starts animation when it enters into the viewport).
- deleted 2y ago[deleted]
- genewitch 2y agobravo for puppeteer, i guess? "singlefile" is the only thing i've ever seen not do weird artifacts in the middle of some site renders, or, like on reddit, just give up rendering comments and render blank space instead until the footer. anyhow i've been doing this exact thing for a real long time, e.g. https://raw.githubusercontent.com/genewitch/opensource/refs/heads/master/screenshot.cgi https://raw.githubusercontent.com/genewitch/opensource/refs/... using bash to return json to some stupid chat service we were running