My 5th book "50 Tips on JavaScript" is on sale. Go get it from https://50tips.dev.
Illustrated guide to 50 of the most interesting JavaScript topics.

getcomputedstyle document queryselector

Get computed css styles for a given element

I just found out that it is possible with pure javascript. It's supported in all the major browsers. Find more information here.

...read more