Testing tabindex=-1 on an iframe that has tab stops inside it.
The frame is below:
<h2>Test 1: tabindex="-1" on iframe</h2>
<p>The frame is below:</p>
<iframe src="https://www.davidmacd.com" tabindex="-1" height="100px" width="200px"></iframe>
<h2>Test 2: Remove tabindex from iframe</h2>
<p>
<iframe src="https://www.davidmacd.com" height="100px" width="200px"></iframe>
</p>
Only JAWS allows the user to tab into an iframe that has links, if the iframe has tabindex=-1. NVDA on Windows and VoiceOver on Safari do not stop on tabs inside an iframe if it has tabindex=-1. Therefore, don't use tabindex=-1 on an iframe that has tab stops inside it. iFrame behaviour is not uniform across screen readers, and browser tab stop behaviour. It's best for authors not to rely on them for large amounts of content. They are flakey in browsers/screeen reader support and have varied behaviour.