From 941b86b6c390bf91eeb6b47f12ff8bf830e28b0a Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 18 Jan 2017 10:43:29 +0100 Subject: works with video, defaults to (same as for images) --- css/reveal.scss | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'css/reveal.scss') diff --git a/css/reveal.scss b/css/reveal.scss index 22fb3fe..68ff56f 100644 --- a/css/reveal.scss +++ b/css/reveal.scss @@ -898,7 +898,11 @@ body { max-height: none; top: 0; left: 0; + object-fit: cover; } + .reveal .slide-background[data-background-size="contain"] video { + object-fit: contain; + } /* Immediate transition style */ .reveal[data-background-transition=none]>.backgrounds .slide-background, -- cgit v1.2.3