Isn't this literally getComputedStyle[1]? Chrome devtools already has a 'computed' section which shows the same thing. What additional functionality does this provide that I'm missing?
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...