Did Madagascar break off Africa or India?

Madagascar, originally part of the ancient continent Gondwana, was formed in two steps. The island, together with India, pulled away from Africa 150 million years ago, stretching and thinning the crust on the island’s west coast before it finally snapped off.