use element's style instead of getComputedStyle