News for hackers. Stuff that matters.
Re:Puppeteer: Headless Chrome Node API by paulirish on Wednesday August 16, 2017 @03:58PM (#15030745)
Yes using the `clip` option of screenshot(), you can get these dimensions from an element's getBoundingClientRect().
Re:Puppeteer: Headless Chrome Node API by ebidel on Wednesday August 16, 2017 @08:44PM (#15032693)
full example of screenshoting a DOM element:

https://github.com/GoogleChrome/puppeteer/issues/306#issueco...

Re:Puppeteer: Headless Chrome Node API by borplk on Wednesday August 16, 2017 @11:02PM (#15033471)
Thank you. That's perfect.