Skip to content
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

Manage background image -gradient #789

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bordeo
Copy link
Contributor

@bordeo bordeo commented May 26, 2020

Using gradient with background image now will be preserved

<div class="lazyload"
     style="padding-bottom: 40%; background-image: linear-gradient(0deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)), url('data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==')"
     data-bgset="image.jpg">
</div>

it becames

<div class="lazyloaded"
     style="padding-bottom: 40%; background-image: linear-gradient(0deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.2)), url('image.jpg')"
     data-bgset="image.jpg">
</div>

@aFarkas
Copy link
Owner

aFarkas commented Jun 1, 2020

Thank you. Sadly our stupid browsers do not support Array.from. (I know...)

@bordeo
Copy link
Contributor Author

bordeo commented Jun 1, 2020

What version of es do you want to support?

@aFarkas
Copy link
Owner

aFarkas commented Jun 1, 2020

What version of es do you want to support?

ES5 / pre ES 2015. Currently we support IE9+ but that is primarily historic. (Everything that supports getElementsByClassName). But we could also discuss everything that supports MutationObserver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants