[csswg-drafts] Proposal for a background-video property (#6732)

jsnkuhn has just created a new issue for https://github.com/w3c/csswg-drafts:

== Proposal for a background-video property ==
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 <img> and css `background-image` why not <video> and css `background-video`? 

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..).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6732 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 15 October 2021 13:51:48 UTC