Skip to content

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