Chorioamnionitis is  a condition in which  bacteria infects the chorion and amnion  ( membranes thats surround the fetus)  and amniotic fluid ( fluid in which the fetus floats ) .