Bug 873222 - check unit-type of font-synthesis value before use. r=dbaron, a=bajaj