garris / garris/BackstopJS

puppeteerOffscreenCaptureFix is an undocumented config

Open
#979 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

**Request**
`puppeteerOffscreenCaptureFix` fixed an issue I was having, but there is no documentation for the config and I am unsure if I should be using it or finding a different solution to the issue I am having.

**Context:**
I recently had an issue where my page had a `margin-top` for a fixed header and some buttons were in the content. I wanted to test the buttons within the container to see hover affects, for some reason the hover was being moved down equidistant to the `margin-top` of my page (causing a button further down than what I wanted to be highlighted). This only occurred on the smallest screen size that I support `320x480`. Setting `puppeteerOffscreenCaptureFix` to `true` fixed this issue. Note that this only happened when `selectors` was set to something that was within the element with the `margin-top`, setting it to `padding-top` did not fix anything.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.