Bug 142195 - poster attribute causes unwanted video size
Summary: poster attribute causes unwanted video size
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2015-03-02 16:09 PST by greg
Modified: 2015-03-03 19:49 PST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description greg 2015-03-02 16:09:44 PST
if the poster attribute on a <video> element contains a missing file it will cause unwanted scaling of the video element. the height of the video will be the same as it's width. this causes a padding on the top and bottom of the element.
The issue is also visible until the image is loaded. This causes flashing.

Reproduce: http://codepen.io/pixelass/pen/vEaEEW