Fix #1: chrome needs parseInt(), also fix text tests in chrome
workaround for firefox not supporting the shorthand font property