The class dropdown in the format toolbar starts looking ok, but the machinery behind still needs work, in particular when the selection is mixed.

class dropdown menu

For those who wonder, querying the list of "existing" classes is fast, very fast. There's no noticeable lag when you open the menulist. Thank the CSS E OM