An interesting question, so I did some maths.
A litre of petrol contains 9.1 kWh of energy. A petrol car burns about 1/2 a litre of petrol and hour when at idle. Petrol engines are around 35% efficient so that means that, assuming about a third of the waste energy goes to heating the cabin, around 2 kWh of energy is available to heat the cabin and if you had half a tank, say 30 litres of fuel onboard, you could last 60 hours. After 14 hours, you would still have enough fuel for 170 miles of driving, if you had the energy yourself.
For an electric car with a capacity of 82 kWh, half full, that would be around 41 kWh. Modern EVs use heat pump systems (most of them do anyway, and in the future all will) for cooling and heating, so to generate the same 2 kWh of heating would take approx 0.7 kWh in battery energy. So after 14 hours, you would have 31 kWh of battery left, or enough for 83 miles.
These numbers are quite extreme, but the electric car isn’t stranded, however it is certainly less resilient than a petrol car with current (geddit) technology. With 1/4 of a tank / battery both vehicles would probably be stranded. It will be interesting to see what the answer is in 5 years time.