first css property should be selected if any text has been typed