CSS Has Power

Link

Message thread

Matthias Zöchling wrote on

Regarding conditional styling, I used :has() to query meta[name="color-scheme"] not too long ago. /cc @amit_sheen 🙃
cssence.com/2024/color-scheme-switcher

Matthias Zöchling wrote on

Thanks, in my case the <select> is just an intermediary. I’ll use it to update the meta tag for color-scheme via JS, and then rely on user agent styles for light/dark mode. 😉

Get involved

Comments are closed, but feel free to share this thread.