Per the HTML spec, elements inside an inert subtree cannot be interacted with. This is also the canonical pattern from Playwright issue #36938.
inert