r/css • u/jaffathecake • 5d ago
Article Controlling when CSS custom property values are computed
https://jakearchibald.com/2026/css-custom-property-compute-time/I didn't understand how this worked until recently, I only knew that @property changed the results. Anyway, I figured it out, and wrote up what I learned. I hope this is useful for others!
30
Upvotes
2
u/testingaurora 1d ago
I had a similar use case except was using the custom property for sibling-index() on a pseudo element. I hadnt realized that registering it would make this difference! Thank you!