The full-page screenshot feature triggers a window resize (to 1px), affecting the layout of the page

431 views
Skip to first unread message

Alex

unread,
Aug 27, 2024, 4:08:07 PMAug 27
to Chromium-dev
Hi Can anyone help with the following issue: 


Steps to reproduce the problem
  1. Navigate to stripe.com
  2. Open dev tools
  3. Paste a snippet to console for debugging purposes window.addEventListener("resize", function () { console.log("Window resize", { height: window.innerHeight, width: window.innerWidth }); });
  4. Use "Capture full size screenshot"
Problem Description

The full-page screenshot feature is not functioning as expected on certain pages, as the window is resized to 1px height and width just before capturing the screenshot, causing layout issues. This issue has been observed in tools like Playwright and Puppeteer, leading to inconsistent screenshots with layout problems, particularly on long pages. Despite efforts to implement alternative methods such as "scroll and stitch" mode, which encounters issues with sticky or fixed elements and web components, using the default Chromium method for screenshots remains necessary. Any suggestions for resolving this persistent issue would be greatly appreciated.

To reproduce the issue, please refer to the following video: https://drive.google.com/file/d/1Ba0Ja90RGmPDMfWAPlCymMT0ZOsHW9-E/view

Here are just a few examples of affected websites:

Summary

The full-page screenshot feature triggers a window resize (to 1px), affecting the layout of the page

Additional Data

Category: Developer Tools
Chrome Channel: Not sure
Regression: N/A

Alexei Svitkine

unread,
Aug 30, 2024, 4:07:32 PMAug 30
to alexandrak...@gmail.com, Chromium-dev
SInce this sounds like a bug report, you should report through our bug tracker at crbug.com/new.

-Alexei

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/5e0bf1b7-d458-43c6-aa4c-605636b512f3n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages