Expected behavior and spec guidance
Initially the "Trigger alert" button announces as a button; after activation, the screen reader MUST convey the alert text "Hello" and MAY convey the "alert" role.
- WAI-ARIA 1.2: alert (role) (5.3.2 Live Region Roles - alert)
- ARIA Authoring Practices Guide: Alert Pattern (Alert Example)
Spec requirements (RFC 2119)
View full feature report foralert - MUST Convey initial control label "Trigger alert" before activation
- MUST Convey alert text "Hello" after activating the trigger button
- MAY Convey role "alert" when the alert region updates
- MUST Cause no severe negative side effects
Test case
<button type="button" id="trigger-alert">Trigger alert</button>
<div id="alert-region" role="alert"></div> const triggerBtn = document.getElementById('trigger-alert');
const alertRegion = document.getElementById('alert-region');
triggerBtn?.addEventListener('click', () => {
if (alertRegion) {
alertRegion.textContent = 'Hello';
}
}); Screen reader outcomes
VoiceOver
6 results: 4 fail, 2 untestedmacOS
macOS 26.3.1 (arm64) Google Chrome 157.0.8103.79 2/3 MUST Fail
Trigger alert button is in the VoiceOver cursor | Trigger alert button Expected phrase "Hello" was not spoken.
- 1.
VO-AreaTopTrigger alert button is in the VoiceOver cursorItem text: Trigger alert button
- 2.
VO-Right ArrowTrigger alert button
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert button is in the VoiceOver cursorPassed - MUSTConvey alert text "Hello" after activating the trigger button
Expected phrase "Hello" was not spoken.
Failed - MAYConvey role "alert" when the alert region updates
Expected phrase "alert" was not spoken.
Unsupported - 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 2/3 MUST Fail
Trigger alert button is in the VoiceOver cursor | Trigger alert button Expected phrase "Hello" was not spoken.
- 1.
VO-AreaTopTrigger alert button is in the VoiceOver cursorItem text: Trigger alert button
- 2.
VO-Right ArrowTrigger alert button
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert button is in the VoiceOver cursorPassed - MUSTConvey alert text "Hello" after activating the trigger button
Expected phrase "Hello" was not spoken.
Failed - MAYConvey role "alert" when the alert region updates
Expected phrase "alert" was not spoken.
Unsupported - 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 2/3 MUST Fail
Trigger alert button is in the VoiceOver cursor | Trigger alert button Expected phrase "Hello" was not spoken.
- 1.
VO-AreaTopTrigger alert button is in the VoiceOver cursorItem text: Trigger alert button
- 2.
VO-Right ArrowTrigger alert button
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert button is in the VoiceOver cursorPassed - MUSTConvey alert text "Hello" after activating the trigger button
Expected phrase "Hello" was not spoken.
Failed - MAYConvey role "alert" when the alert region updates
Expected phrase "alert" was not spoken.
Unsupported - 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 2/3 MUST Fail
Trigger alert button is in the VoiceOver cursor | Trigger alert button Expected phrase "Hello" was not spoken.
- 1.
VO-AreaTopTrigger alert button is in the VoiceOver cursorItem text: Trigger alert button
- 2.
VO-Right ArrowTrigger alert button
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert button is in the VoiceOver cursorPassed - MUSTConvey alert text "Hello" after activating the trigger button
Expected phrase "Hello" was not spoken.
Failed - MAYConvey role "alert" when the alert region updates
Expected phrase "alert" was not spoken.
Unsupported - 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 3/3 MUST Pass
Hello - 1.
TalkBack swipe-rightTrigger alert. button - 2.
TalkBack double-tap (activate)Hello
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert. buttonPassed - MUSTConvey alert text "Hello" after activating the trigger button
Matched:
HelloPassed - MAYConvey role "alert" when the alert region updates
Expected phrase "alert" was not spoken.
Unsupported - 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 3/3 MUST Pass
Trigger alert. button, Hello, Trigger alert. button, Double-tap to activate - 1.
TalkBack swipe-rightTrigger alert. button, Double-tap to activate - 2.
TalkBack double-tap (activate)Trigger alert. button, Hello, Trigger alert. button, Double-tap to activate
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
Trigger alert. button, Double-tap to activatePassed - MUSTConvey alert text "Hello" after activating the trigger button
Matched:
Trigger alert. button, Hello, Trigger alert. button, Double-tap to activatePassed - MAYConvey role "alert" when the alert region updates
Matched:
Trigger alert. button, Hello, Trigger alert. button, Double-tap to activatePassed - 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 3/3 MUST Pass
assertive: Hello - 1.
virtual.walkbutton, Trigger alertRole: button · Name: Trigger alert
- 2.
virtual.walkalertRole: alert
- 3.
virtual.walkend of documentRole: document
- 4.
virtual.activateassertive: HelloItem text: Trigger alert
- MUSTConvey initial control label "Trigger alert" before activation
Matched:
button, Trigger alertPassed - MUSTConvey alert text "Hello" after activating the trigger button
Matched:
assertive: HelloPassed - MAYConvey role "alert" when the alert region updates
Matched:
assertive: HelloPassed - MUSTCause no severe negative side effects
No unexpected chrome, focus trap, or spurious speech observed.
Passed
W3C ARIA-AT data
Compare all environments foralert
Reports from the W3C ARIA-AT Community Group covering alert.