> All in One 586

Ads

Friday, May 1, 2026

Partly Cloudy today!



With a high of F and a low of 31F. Currently, it's 45F and Clear outside.

Current wind speeds: 6 from the Northeast

Pollen: 0

Sunrise: May 1, 2026 at 05:53PM

Sunset: May 2, 2026 at 07:45AM

UV index: 0

Humidity: 45%

via https://ift.tt/Jgnk0zU

May 2, 2026 at 10:02AM

What’s !important #10: HTML-in-Canvas, Hex Maps, E-ink Optimization, and More

Developers have been experimenting with HTML-in-Canvas, a hexagonal world map-analytics feature, a web-based OS for e-ink devices, replacing img srcs using content, and more. This is What’s !important #10.

HTML-in-Canvas experiments

HTML-in-Canvas, a new API that enables us to render real semantic HTML in a <canvas> with visual effects, is the talk of the town right now, so let’s lead with that. Amit Sheen showed us how the HTML-in-Canvas API works, and also created some demos over at the HiC Showroom, like this one (requires Chrome 146 with the chrome://flags/#canvas-draw-element flag enabled):

Building a hexagonal world map-analytics feature

Ben Schwarz (awesome name, but no relation) talked about building a hexagonal world map-analytics feature. While it’s more of a retrospective than a developer walkthrough, it’s a really interesting read about analytics, design constraints, inspiration, engineering, and of course SVG and CSS.

A world map composed of small hexagons colored in orange, green, and red.
Source: Calibre.

Rekindle — a web-based OS for e-ink devices

Rekindle is basically a web-based operating system for e-ink devices like Kindle, Kobo, and Boox, which are often low-powered with few features. Rekindle includes an insane number of features and apps, and is designed in black-and-white, with no animations, and no doubt with many more e-ink optimizations.

A black and white user interface for Rekindle that primarily shows a grid of app icons.

The takeaway isn’t a tutorial (unfortunately) or even some commentary (like with the world map retrospective above), it’s that we have a whole bunch of media queries that’d be so useful for e-ink devices if it weren’t for the fact that they’re shipping with low-powered, proprietary web browsers that don’t recognize them. Media Queries Level 5 can query hover capability, the precision of pointers, display update frequency, color depth, monochromatic bit-depth, color index size, dynamic range, and more, probably.

Thoughts? Is e-ink optimization likely to break out in the coming years, or is low demand for these media queries why a dedicated service like Rekindle needs to exist? It’s worth noting that the browsers and many of the media queries are in active development, so I don’t know. Watch this space, maybe?

Either way, I’d love to see a dev deep dive on Rekindle!

Replacing img srcs using content

Jon discovered that CSS can be used to replace image sources, like this:

<img src="image.png" alt="Alt text">
img {
  content: url(new-image.png) / "New alt text";
}

TIL! Who knew you could change the "src" of an #HTML <img> using #CSS: img { content: url(whatever.png) } NO PSEUDOS! Seems to work in all current browsers too. How did I miss this?

— Jon (@scrwd.mastodon.social.ap.brid.gy) Apr 20, 2026 at 13:09

It’s really interesting to learn this about the content property, which has been Baseline for 11 years now. I experimented a bit more and discovered that this trick also works with the image-set() function:

img {
  content: image-set(
    url("image.png") 1x,
    url("image-2x.png") 2x
  );
}

So if you’re working on a website with non-responsive <img>s and no way to change the markup, write the logic in CSS instead.

Implementing responsive images with sizes=auto

Having said that, if you do have access to the HTML, you’ll want to serve responsive images using the srcset and sizes HTML attributes. Mat Marquis demonstrated how the new sizes=auto attribute-value combination replaces responsive breakpoints for images that are loaded lazily.

If you’re interested, Amit Sheen also talked about building layouts (not necessarily images) without breakpoints.

New web platform features and updates

If you’re keen for more content, here’s Wes Bos and Scott Tolinski of Syntax.fm discussing 10 new CSS and HTML APIs:

Until next time!


What’s !important #10: HTML-in-Canvas, Hex Maps, E-ink Optimization, and More originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.



from CSS-Tricks https://ift.tt/vZcK9ei
via IFTTT

Thursday, April 30, 2026

Partly Cloudy today!



With a high of F and a low of 32F. Currently, it's 40F and Partly Cloudy outside.

Current wind speeds: 5 from the South

Pollen: 0

Sunrise: April 30, 2026 at 05:54PM

Sunset: May 1, 2026 at 07:44AM

UV index: 0

Humidity: 92%

via https://ift.tt/AuB2kgE

May 1, 2026 at 10:02AM

Tuesday, April 28, 2026

Mostly Cloudy today!



With a high of F and a low of 34F. Currently, it's 44F and Partly Cloudy outside.

Current wind speeds: 7 from the Northeast

Pollen: 0

Sunrise: April 28, 2026 at 05:56PM

Sunset: April 29, 2026 at 07:42AM

UV index: 0

Humidity: 61%

via https://ift.tt/xjPGDE3

April 29, 2026 at 10:02AM

Monday, April 27, 2026

Rain Early today!



With a high of F and a low of 30F. Currently, it's 44F and Showers in the Vicinity outside.

Current wind speeds: 16 from the Northeast

Pollen: 0

Sunrise: April 27, 2026 at 05:57PM

Sunset: April 28, 2026 at 07:41AM

UV index: 0

Humidity: 63%

via https://ift.tt/GSlh9kC

April 28, 2026 at 10:02AM

Sunday, April 26, 2026

Isolated Thunderstorms today!



With a high of F and a low of 36F. Currently, it's 41F and Mostly Cloudy outside.

Current wind speeds: 7 from the Northeast

Pollen: 0

Sunrise: April 26, 2026 at 05:59PM

Sunset: April 27, 2026 at 07:40AM

UV index: 0

Humidity: 100%

via https://ift.tt/XtcDYJG

April 27, 2026 at 10:02AM

Partly Cloudy today!

With a high of F and a low of 31F. Currently, it's 45F and Clear outside. Current wind speeds: 6 from the Northeast Pollen: 0 Su...