Handling broken images with the service worker

added by JavaScript Kicks
12/19/2018 8:10:29 AM

455 Views

A few years ago, I wrote about how we can use css to style broken images. The technique leveraged on the fact that any styling to the ::before or ::after pseudo-elements on the <img> element will only be applied if the image doesn't load. So, we could


0 comments