Test page to verify current browser/screen reader behaviour for live regions - see w3c/aria/issues/2154 for context.
Note that role="alert"
is slightly "magic" and triggers an announcement even in cases where you generally don't expect it - see w3c/aria/issues/2153.
Does not include role="marquee"
and role="timer"
at this stage, as they have an intrinsic aria-live="off"
and will require a different type of test - see w3c/aria/issues/2144.
Ported over from codepen
Load/reload codepen to verify if any of these get announced on page load.
<div aria-live="polite">
already present and populated on page load.
<div aria-live="assertive">
already present and populated on page load.
<div role="status">
already present and populated on page load.
<div role="alert">
already present and populated on page load.
<div role="log">
already present and populated on page load.
display:none
on a fully-populated live region container<div aria-live="polite">
<div aria-live="assertive">
<div role="status">
<div role="alert">
<div role="log">
<div aria-live="polite">
<div aria-live="assertive">
<div role="status">
<div role="alert">
<div role="log">
<div aria-live="polite">
<div aria-live="assertive">
<div role="status">
<div role="alert">
<div role="log">
Using a 150ms
delay.
<div aria-live="polite">
, then inject<div aria-live="assertive">
, then inject<div role="status">
, then inject<div role="alert">
, then inject<div role="log">
, then inject