Perhaps it would be worth adding a default case that could be fallen through to to warn people they are setting an invalid style.