'How to use JavaScript or jQuery to get updated styles when the pseudo element is :hovered or :active or :linked

It seems getComputedStyle only returns the original style of the pseudo element. getComputedStyle does, however, return the style of regular elements when they're :hovered or :active



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source