Post

Unfortunate that we cannot do this with the <img> element, but you can probably put together a workaround with <img> elements and loading=“lazy”

Cory LaViska@cory.laviska.com

TIL you can use light-dark() with images

0 reposts1 like

You can use the <picture> element to handle different images based on `prefers-color-scheme`. Not exactly the same, but pretty good for now!