GoogleChrome / GoogleChrome/lighthouse

Video audit: too large or too small for display dimensions

Open
#2,580 1 comment 0 reactions 0 assignees View on GitHub
feature new_audit P3
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

Check if the display dimensions of a video element are considerably larger or smaller (say 2x) than the encoded dimensions of the video played in it.

Test by comparing video element `videoWidth` against `clientWidth`.

Need to ensure video `loadedmetadata` has fired before testing.

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.