-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
theme background image disappears on fullscreen in firefox #1621
Comments
Oh, my reduced test case is here: https://github.com/wanderview/bg-image-bug And the firefox bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=714809 And @annevk thinks there might be a spec issue related to this: |
I believe all browsers agree with the same behavior that a fullscreen |
I did not get this behavior in chrome. It was unclear to me which of firefox/chrome/spec is wrong. In this case I think it would just be easier for reveal.js to fullscreen the documentElement instead of the body. |
At least in your reduced test case, if you make it webkit-prefixed, you should see the same behavior in Chrome. |
Requesting fullscreen on the documentElement looks like a solid fix. Thanks @wanderview! |
I'm working on some slides and made my own theme to display a consistent background for the deck. I noticed, however, that the image disappears when I enter fullscreen.
I investigated this a bit with this layout guys and it seems that reveal.js can work around the issue by simply requesting fullscreen on
documentElement
instead ofbody
.So something like:
Also note the standard fullscreen method is
requestFullscreen()
with a lower-case "s". The current code has an upper case "s" in its compat check here.The text was updated successfully, but these errors were encountered: