getStyle fix for ancient browsers