garris / garris/BackstopJS

Viewport size changing occasionally

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

Description

Really not sure what's going on here because it'll happen only in some test runs but the actual _width_ of the viewport is changing by 10px in some tests, causing them to fail.

![Screenshot 2020-09-25 at 11 39 47](https://user-images.githubusercontent.com/2095051/94257970-0b32b700-ff24-11ea-92e5-2337874a7a48.png)

We've manually set the viewport to 320px but occasionally (both locally & in CI) it'll get rendered as 330px.
Other tests at that viewport will render fine in the same test run.

It seems to only happen when we render a `position: absolute; width: 100%; height: 100%;` element

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.