Different behaviour of form elements in pair with :before/:after pseudo-elements