Normalize style values. Closes #598