Cyclic Dependency Space Toggles
with tags: #CSS Variables #CSS Logic #Style Queries #Experiment #Practical #CSS
Over the past few years, I wanted to be able to select a value from a list in CSS by toggling a single custom property. We have the “space toggle” for booleans, and hopefully, one day, we’ll get style queries, but what about today? In this article, I present you with the technique I recently discovered.