diff options
author | Hakim El Hattab | 2017-01-18 10:43:29 +0100 |
---|---|---|
committer | Hakim El Hattab | 2017-01-18 10:43:29 +0100 |
commit | 941b86b6c390bf91eeb6b47f12ff8bf830e28b0a (patch) | |
tree | 2916787d820d26a2c6082c26e80921aea89533bf /css/reveal.css | |
parent | 84090b882f99c1da5b73bbe04a9c74731e71dfc8 (diff) |
works with video, defaults to (same as for images)
Diffstat (limited to 'css/reveal.css')
-rw-r--r-- | css/reveal.css | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/css/reveal.css b/css/reveal.css index 430dcde..18bb25c 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -865,7 +865,13 @@ body { max-width: none; max-height: none; top: 0; - left: 0; } + left: 0; + -o-object-fit: cover; + object-fit: cover; } + +.reveal .slide-background[data-background-size="contain"] video { + -o-object-fit: contain; + object-fit: contain; } /* Immediate transition style */ .reveal[data-background-transition=none] > .backgrounds .slide-background, |