Expected behavior and spec guidance
Initially the "Details" button announces collapsed; after activation it updates aria-expanded="true", reveals #panel, and announces expanded.
Spec requirements (RFC 2119)
View full feature report foraria-expanded - MUST Convey initial control text "Details" before activation
- MUST Convey dynamic announcement "expanded" after activation
- MUST Convey required ARIA state "expanded"
- MUST Cause no severe negative side effects
Test case
<button type="button" id="toggle-btn" aria-expanded="false" aria-controls="panel">Details</button>
<div id="panel" hidden>Panel details content</div> const toggleBtn = document.getElementById('toggle-btn');
const panel = document.getElementById('panel');
toggleBtn?.addEventListener('click', () => {
const nextExpanded = toggleBtn.getAttribute('aria-expanded') !== 'true';
toggleBtn.setAttribute('aria-expanded', String(nextExpanded));
if (panel) {
panel.hidden = !nextExpanded;
}
}); Screen reader outcomes
VoiceOver
6 results: 4 pass, 2 untestedmacOS
macOS 26.3.1 (arm64) Google Chrome 157.0.8103.79 4/4 MUST Pass
Details expanded button - 1.
VO-AreaTopDetails collapsed button is in the VoiceOver cursorItem text: Details collapsed button
- 2.
VO-Right ArrowDetails collapsed button - 3.
VO-Space (act)Details expanded button
- MUSTConvey initial control text "Details" before activation
Matched:
Details collapsed button is in the VoiceOver cursorPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
Details expanded buttonPassed - MUSTConvey required ARIA state "expanded"
Matched:
Details expanded buttonPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) Safari 26.3.1 4/4 MUST Pass
Details expanded button - 1.
VO-AreaTopDetails collapsed button is in the VoiceOver cursorItem text: Details collapsed button
- 2.
VO-Right ArrowDetails collapsed button - 3.
VO-Space (act)Details expanded button
- MUSTConvey initial control text "Details" before activation
Matched:
Details collapsed button is in the VoiceOver cursorPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
Details expanded buttonPassed - MUSTConvey required ARIA state "expanded"
Matched:
Details expanded buttonPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) Firefox 156.0.1 4/4 MUST Pass
Details expanded button - 1.
VO-AreaTopDetails collapsed button is in the VoiceOver cursorItem text: Details collapsed button
- 2.
VO-Right ArrowDetails collapsed button - 3.
VO-Space (act)Details expanded button
- MUSTConvey initial control text "Details" before activation
Matched:
Details collapsed button is in the VoiceOver cursorPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
Details expanded buttonPassed - MUSTConvey required ARIA state "expanded"
Matched:
Details expanded buttonPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
macOS 26.3.1 (arm64) WKWebView (macOS WebKit) 21623 WebView 4/4 MUST Pass
Details expanded button - 1.
VO-AreaTopDetails collapsed button is in the VoiceOver cursorItem text: Details collapsed button
- 2.
VO-Right ArrowDetails collapsed button - 3.
VO-Space (act)Details expanded button
- MUSTConvey initial control text "Details" before activation
Matched:
Details collapsed button is in the VoiceOver cursorPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
Details expanded buttonPassed - MUSTConvey required ARIA state "expanded"
Matched:
Details expanded buttonPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
iOS
iOS (Not tested) Safari (Not tested) VoiceOver iOS Untested
Not yet tested on iOS.
iOS (Not tested) WKWebView (Not tested) WebView VoiceOver iOS Untested
Not yet tested on iOS.
TalkBack
3 results: 2 pass, 1 untestedAndroid
Android 13 (API 33) Google Chrome 109.0.5414.123 TalkBack 14.2.0.618048417 4/4 MUST Pass
expanded - 1.
TalkBack swipe-rightcollapsed. Details. button - 2.
TalkBack double-tap (activate)expanded
- MUSTConvey initial control text "Details" before activation
Matched:
collapsed. Details. buttonPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
expandedPassed - MUSTConvey required ARIA state "expanded"
Matched:
expandedPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
Android 13 (API 33) Android System WebView 109.0.5414.123 WebView TalkBack 14.2.0.618048417 4/4 MUST Pass
expanded. Details. button, expanded. Details. button, Double-tap to activate. Actions available, use Tap with 3 fingers to view, expanded - 1.
TalkBack swipe-rightcollapsed. Details. button - 2.
TalkBack double-tap (activate)expanded. Details. button, expanded. Details. button, Double-tap to activate. Actions available, use Tap with 3 fingers to view, expanded
- MUSTConvey initial control text "Details" before activation
Matched:
collapsed. Details. buttonPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
expanded. Details. button, expanded. Details. button, Double-tap to activate. Actions available, use Tap with 3 fingers to view, expandedPassed - MUSTConvey required ARIA state "expanded"
Matched:
expanded. Details. button, expanded. Details. button, Double-tap to activate. Actions available, use Tap with 3 fingers to view, expandedPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
Android 13 (API 33) Firefox (Not tested) TalkBack 14.2.0.618048417 Untested
Not yet tested on Android Firefox.
Simulated screen reader
1 result: passmacOS
macOS 26.3.1 (arm64) Google Chrome (Headless) 157.0.8103.79 Simulated screen reader 0.32.1 4/4 MUST Pass
button, Details, 1 control, expanded - 1.
virtual.walkbutton, Details, 1 control, not expandedRole: button · Name: Details
- 2.
virtual.walkend of documentRole: document
- 3.
virtual.activatebutton, Details, 1 control, expandedItem text: Details
- MUSTConvey initial control text "Details" before activation
Matched:
button, Details, 1 control, not expandedPassed - MUSTConvey dynamic announcement "expanded" after activation
Matched:
button, Details, 1 control, expandedPassed - MUSTConvey required ARIA state "expanded"
Matched:
button, Details, 1 control, expandedPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
W3C ARIA-AT data
Compare all environments foraria-expanded
Reports from the W3C ARIA-AT Community Group covering aria-expanded.
VoiceOver
7 results: all failmacOS
macOS 15.6 Safari 18.6 VoiceOver 15.6 53/59 MUST Fail
macOS 15.1 Safari 18.3 VoiceOver 15.1 25/34 MUST Fail
macOS 15.0 Safari 26 VoiceOver 15.0 0/13 SHOULD Fail
macOS 14.7 Safari 18.0.1 VoiceOver 14.7 31/34 MUST Fail
macOS 14.6.1 Safari 17 VoiceOver 14.6.1 0/13 SHOULD Fail
macOS 13.7 Safari 18.0.1 VoiceOver 13.7 0/13 SHOULD Fail
macOS 13.7 Safari 17 VoiceOver 13.7 0/11 SHOULD Fail
NVDA
4 results: 2 partial, 2 failWindows
Windows Chrome 139 NVDA 2025.1.2 74/78 MUST Fail
Windows Chrome 130.0.6723.59 NVDA 2023.3 15/16 SHOULD Partial
Windows Chrome 129.0.6668.90 NVDA 2023.3 46/48 MUST Fail
Windows Chrome 127.0.6533.100 NVDA 2024.1 15/16 SHOULD Partial
JAWS
9 results: 4 pass, 5 partialWindows
Windows Chrome 148 JAWS 2025.2508.120 6/16 SHOULD Partial
Windows Chrome 143 JAWS 2025.2508.120 43/43 MUST Partial
Windows Chrome 142 JAWS 2025.2508.120 48/48 MUST Pass
Windows Chrome 139 JAWS 2025.2508.120 35/35 MUST Pass
Windows Chrome 139 JAWS 2025.2506.170 43/43 MUST Pass
Windows Chrome 131 JAWS 2025 7/16 SHOULD Partial
Windows Chrome 130 JAWS 2024.2409.2 48/48 MUST Pass
Windows Chrome 130 JAWS 2024.2406.121 6/16 SHOULD Partial
Windows Chrome 129 JAWS 2024.2409.2 7/15 SHOULD Partial
- Accordion CANDIDATE · V25.07.14
- Action Menu Button Example Using aria-activedescendant CANDIDATE · V25.10.26
- Action Menu Button Example Using element.focus() CANDIDATE · V25.02.13
- Disclosure Navigation Menu Example CANDIDATE · V25.10.27
- Disclosure of Answers to Frequently Asked Questions Example CANDIDATE · V25.11.04
- Navigation Menu Button CANDIDATE · V25.02.13