properly ordering style state declarations