Style validation moves to one shared function so the sender and receiver cannot drift on what a style is.