Email or username:

Password:

Forgot your password?
Vadim Makeev

Gather around the fire, kids. Today, I will tell you an HTMHell story about native HTML color scheme switching. It’s getting dark early in Berlin in the winter…

htmhell.dev/adventcalendar/202

The goat’s black-and-white face on the dark background is inside a pentagram with a div, table, role, and span placed at the points. Below the circle, the text reads: “HTMHell. Native HTML light and dark color scheme switching.” The top-right corner displays #9.
2 comments
Ténno Seremélʹ

@pepelsbey
> …doesn’t allow users to choose a different color scheme for this specific website.

Browsers could have allowed that, if they cared 🤷

Luke

@pepelsbey `color-scheme: light` when a user has explicitly chosen a scheme should probably actually be `color-scheme: light only` else chrome on Android may try and force it to dark mode anyway.

Go Up