Seven SNP MSPs have defied Nicola Sturgeon by voting against plans to make it easier for people to change their gender.
These included Ash Regan, who quit as Community Safety Minister in protest at the proposals, and former Cabinet Secretary Fergus Ewing.
Two other SNP MSPs failed to support the First Minister by abstaining.