-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
If data-background-image is a data uri, background image will not show up #2978
Comments
Evet katkı lazim |
Hi, Same issue here. It was working with version 4.0.2. |
Hello, |
It took me time to found this opened issue but at least it gave me the opportunity to dig into why this was not working. For the context, I am using reveal.js with Pandoc to produce I believe this issue is a regression that happens after 4.1.1 release, specifically after support for multiple background images in #2940 by @cmeessen This is the new code now to create the reveal.js/js/controllers/slidecontent.js Lines 103 to 108 in 0da9821
The
from the spec https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs That is why currently two For example, source is
But after reveal.js processes it, it gets wrongly split into two
It should not be split in that case.
One solution would be to not split when I can try a PR if that helps. And in any case, hope it helps get a fix for next version. Thanks! |
Thanks for debugging @cderv. This has been fixed now—reveal.js will not try to split background images in base64 format (i.e. beginning with |
Thanks ! |
If data-background-image is a data uri, background image will not show up
The text was updated successfully, but these errors were encountered: