Description
ARIA 1.2 contains roles that do not have native HTML counterparts, as outlined in 2.14 Aria roles and properties not available as features in HTML. A collection of roles that may apply to this proposal:
Each of these roles identifies how it is exposed to the accessibility APIs and what states and properties they should expose.
For any of these roles that you feel applies to the proposed toast element, then you may want to mint attributes to indicate which (eg: type="alert|status|timer"
) and their associated ARIA states & properties (eg: live="polite|assertive"
and/or atomic="true|false"
and/or …).
At the very least, a native toast implementation should look to adopt one or more of these roles and follow the interactions already defined in the ARIA specification.