Warn when using hyphenated style property names

Fixes #932 
nit: no space after function