guardian / guardian/dotcom-rendering

[Bug]: Video atoms poster frame dependent on viewport

Open
#9,073 4 comments 0 reactions 0 assignees View on GitHub
maintenance
Dominant language
TypeScript
Stars
274
Forks
34
Avg merge
2d 22h
Merged PRs (30d)
121

Description

### What happened?

Steps to repro:
1. Open any page with proper media atom
2. Grab browser window, open DevTools or otherwise change the viewport size
3. Observe poster frame resizing

![ezgif com-optimize](https://github.com/guardian/dotcom-rendering/assets/6032869/4ff9deb5-157b-40b8-bd85-062148b04ee7)

### Where is this happening?

https://www.theguardian.com/video (cards with active video)
https://www.theguardian.com/politics/video/2023/oct/04/young-conservatives-the-brexit-generation-at-tory-party-conference-video
or any other page with video atoms (following [this](https://github.com/guardian/dotcom-rendering/pull/8969))

### What is the impact?

Minimal.

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.