انضم إلى نوستر
2025-09-02 20:04:53 UTC

Thomas Michael Semmler on Nostr: So, I use getPropertyValue() quite often to read some value from CSS custom ...

So, I use getPropertyValue() quite often to read some value from CSS custom properties. But I fail when it contains one of those awesome #CSS values, like clamp() or max().

Is there a way in #javascript to somehow get the computed, calculated pixel value of something like this?

Background here is that I am working with a javascript library that requires some things to be set in pixel values, but I work with fluid values all throughout the site.