Skip to content

Proposal for a background-video property #6732

Open
@jsnkuhn

Description

@jsnkuhn

Has any serious consideration yet been given to adding a CSS background-video property?

There are already tons of articles explaining how to reposition the <video> tag for this. Since folks are doing it anyway seems that CSS background-video could save developers some work. Could also help discourage the use of bloated animated image types for this?

Seperation of concerns thinking would go: HTML for content video and CSS for background video. We have html and css background-image why not

I vaguely remember something about Safari considering allowing the use of video formats in background-image and treating them like animated GIFs by default (muted with auto repeat). But wouldn't there be special consideration for video that would require a separate background-video property (like playback speed, etc)?

background-video like background-image would need to work with (where possible) existing background- properties (-size, -position, etc..).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions