getStylesForSelection

Returns the styles to apply for a given selection.

selection must have been obtained from componentSelection.