Not using an error anymore. Instead I use window.getComputedStyle(element)