The current synchronous work runs to completion. At a microtask checkpoint the browser drains the microtask queue, including newly queued microtasks, before starting the next task. Promise reactions and queueMicrotask are microtasks. Timers schedule tasks and a zero delay is not a guarantee of immediate execution.
Follow-up Interview Question · How can a long chain of microtasks delay the next timer or rendering opportunity?