ampproject / ampproject/amphtml

Custom poster for video is not fitting appropriately

Open
#28,383 4 comments 0 reactions 1 assignee Claimed by @alanorozco View on GitHub
Component: amp-video & interface Stale Type: Bug WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

## What's the issue?

Custom poster used in amp-video not fitting appropriately if the aspect ratio of poster and video are different.

## How do we reproduce the issue?

Here is the [codepen link](https://codepen.io/sagarnasit/pen/ExVpRXo).

1. Add the amp-video component.
2. Add poster image with different aspect ratio.

## What browsers are affected?

All browsers.

## Which AMP version is affected?

Powered by AMP ⚡ HTML – Version 2005050322002

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.