Thanks. I just Googled it, I noticed that it should work. They mentioned that timeouts could work, but getComputedStyle won't fail.

I forgot to mention that since you are now creating the element, you need to remove it as before. Which I didn't saw in your last commit.