`previousMode` tracking may be more reliable if we can safely assume that we always have well-formed and style blocks. Anyway, I'll make a change with that assumption until someone can prove that to be wrong.