Fatwa ID: 04032
Answered by: Shaykh Umer Khan
If the baby is halfway out the mother and shows signs of life, then dies, is it considered alive in terms of تكفين and Janazah?
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيْم
In the name of Allah, the Most Gracious, the Most Merciful
The baby should be given a bath, wrapped in cloth, and buried. If the baby showed signs of life (like making sounds or moving body parts, etc) before it died, even if it was only partway out the mother, then it will be given a name and prayed over.
Only Allah knows best
Written by Shaykh Umer Khan
Checked and approved by Mufti Mohammed Tosir Miah
Darul Ifta Birmingham
 Raddu al-Muḥtār, 2/227