Interactive iframe
with role=presentation
and negative tabindex
and no accessible name
Screen reader compatibility
Expected Result: works in a screen reader
Actual Result: causes problems in 13 screen reader / browser combinations
Tests if role=presentation with tabindex=-1 affects accessibility tree. Tabindex makes the iframe click focusable which should trigger presentational role conflict .
Code used for this test:
<iframe src='1234.html' width='400' height='100' role='presentation' tabindex='-1'> </iframe>
Reliability Trend
This graph shows reliability over time for this code in NVDA, JAWS and Voiceover. Other screen readers don't have enough historical data yet to plot trends.
Change History
Last updated: December 12, 2023
- NVDA with Chrome Causes problems in NVDA 2023.3
- NVDA with FF Causes problems in NVDA 2023.3
- JAWS with Chrome Causes problems in JAWS 2023.2311.34
- JAWS with FF Causes problems in JAWS 2023.2311.34
- VoiceOver macOS Causes problems in VoiceOver macOS 13.6
- VoiceOver iOS OK in VoiceOver iOS 16.6
Screen reader | Browser | Mode | Notes | What the user hears |
---|---|---|---|---|
NVDA 2023.3 | Chrome 120 | Reading | Example target grouping, this is a link, example hyperlink, in the target page. | |
NVDA 2023.3 | Chrome 120 | Tabbing | Skips over focusable link in iframe | |
NVDA 2023.3 | FF 115 | Reading | role=presentation makes frame seamless | Frame, this is a link, example hyperlink, in the target page. |
NVDA 2023.3 | FF 115 | Tabbing | Skips over focusable link in iframe | |
NVDA 2023.3 | Edge 120 | Reading | Reads as group role instead of frame role, and reads title element of iframe document | Example target grouping, this is a link, example hyperlink, in the target page |
NVDA 2023.3 | Edge 120 | Tabbing | Skips over focusable link in iframe | |
NVDA 2022.2 | Chrome 118 | Reading | Example target grouping, this is a link, example hyperlink, in the target page. | |
NVDA 2022.2 | Chrome 118 | Tabbing | Skips over focusable link in iframe | |
NVDA 2022.2 | FF 102 | Reading | role=presentation makes frame seamless | This is a link, example hyperlink, in the target page. |
NVDA 2022.2 | FF 102 | Tabbing | Skips over focusable link in iframe | |
NVDA 2022.2 | Edge 120 | Reading | Reads as group role instead of frame role, and reads title element of iframe document | Example target grouping, this is a link, example hyperlink, in the target page |
NVDA 2022.2 | Edge 120 | Tabbing | Skips over focusable link in iframe | |
JAWS 2023.2311.34 | Chrome 120 | Reading | Group start, example target. This is an. Link, example hyperlink. In the target page. | |
JAWS 2023.2311.34 | Chrome 120 | Tabbing | Skips over focusable link in iframe | |
JAWS 2023.2311.34 | FF 115 | Reading | role=presentation makes frame seamless | This is an. Link, example hyperlink. In the target page. |
JAWS 2023.2311.34 | FF 115 | Tabbing | Skips over focusable link in iframe | |
JAWS 2023.2311.34 | Edge 120 | Reading | Group start, example target. This is an. Link, example hyperlink. In the target page. | |
JAWS 2023.2311.34 | Edge 120 | Tabbing | Skips over focusable link in iframe | |
JAWS 2022.2207.25 | Chrome 118 | Reading | Group start, example target. This is an. Link, example hyperlink. In the target page. | |
JAWS 2022.2207.25 | Chrome 118 | Tabbing | Skips over focusable link in iframe | |
JAWS 2022.2207.25 | FF 102 | Reading | role=presentation makes frame seamless | This is an. Link, example hyperlink. In the target page. |
JAWS 2022.2207.25 | FF 102 | Tabbing | Skips over focusable link in iframe | |
JAWS 2022.2207.25 | Edge 120 | Reading | Group start, example target. This is an. Link, example hyperlink. In the target page. | |
JAWS 2022.2207.25 | Edge 120 | Tabbing | Skips over focusable link in iframe | |
VoiceOver macOS 13.6 | Safari 16.6 | Reading | role=presentation makes frame seamless | This is an. Example hyperlink, link. In the target page. |
VoiceOver macOS 13.6 | Safari 16.6 | Tabbing | Skips over focusable link in iframe | |
VoiceOver iOS 16.6 | Safari iOS 16.6 | Touch | This is an. Example hyperlink, link. In the target page. |
Test notes
All tests were carried out with screen reader factory settings. JAWS in particular has a wide variety of settings controlling exactly what gets spoken.
Screen readers allow users to interact in different modes, and can produce very different results in each mode. The modes used in these tests are:
- Reading Content read using the “read next” command in a screen reader
- Tabbing Content read using the “tab” key in a screen reader
- Heading Content read using the “next heading” key in a screen reader
- Touch Content read when touching an area of screen on a mobile device
In the “What the user hears” column:
- Commas represent short pauses in screen reader voicing
- Full Stops represent places where voicing stops, and the “read next” or “tab” or “next heading” command is pressed again
- Ellipsis … represent a long pause in voicing
- (Brackets) represent voicing that requires a keystroke to hear