This is the markup before the change: three message groups, each with its own live role, inside an unnamed div. The messages are still reachable by reading order and by their visually hidden headings; there is no named landmark that jumps straight to them.
What to notice
- The outer
divhas no role and no accessible name, so it is not a landmark. - The messages keep their own roles:
statusfor the confirmation,alertfor the warning and the error. - The visible type label is part of this demonstration. Core conveys the type with a visually hidden heading and theme styling; the label here also helps people who cannot rely on colour.
- Whether the messages are announced when this page opens depends on the browser and screen reader. Server-rendered live regions are not consistently announced on load, and this page does not simulate announcements.
- A screen reader can still find the messages by heading or by reading on. The After page adds a landmark route, not a replacement for those.