refs #2174 workaround for a bug in Webkit which does not apply the styles / render in this case. only if one manually adds a class afterwards and removes it again