Female job applicants in China, which is trying to raise its birthrate, have long been discriminated against by employers who ask about their marriage and childbearing plans.