Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documenting "puppeteerOffscreenCaptureFix" #980

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,13 @@ Filename formats have changed. To use the 1.x (compatible) file format, use the
}
```

### puppeteerOffscreenCaptureFix config

When using Puppeteer sometimes elements or hover effects will not properly display when there is multiple levels of page spacing. (I.E. Element has a `margin-top`, child of that element is a `selectors` and the hovered element is within that child element).

You can use `puppeteerOffscreenCaptureFix` to make Puppeteer use `page.screenshot` with a bounding box of the element instead of using `el.screenshot`.

_Note: This issue can also occur if you have transitions or other delayed/dynamic content and is unrelated to this fix._

---

Expand Down