How capital gains tax on property is divided in a divorce

When a couple separates, how does owning, transferring and dividing multiple properties affect capital gains?