Made CSS rotation of spans overridable for more structured code and also in preparation for a possible fix for #1711.