t in undefine rule.style.fontFamily -> rule.style.getPropertyValue('font-family') will be fine