SVG Accessibility API Mappings

W3C Editor's Draft  §

This version:
Latest published version:
Latest editor's draft:
Amelia Bellamy-Royds, Invited Expert,
Richard Schwerdtfeger, Knowbility,
Amelia Bellamy-Royds, Invited Expert,
Richard Schwerdtfeger, Knowbility,
Doug Schepers, W3C,


SVG Accessibility API Mappings (SVG-AAM) defines how user agents map Scalable Vector Graphics (SVG) [SVG] markup to platform accessibility application programming interfaces (APIs). It is intended for SVG user agent developers responsible for SVG accessibility in their user agent.

This specification allows SVG authors to create accessible rich internet applications, including charts, graphs, and other drawings. It does this by extending the Core Accessibility API Mappings 1.1 (CORE-AAM) [CORE-AAM] and the Accessible Name and Description: Computation and API Mappings 1.1 (ACCNAME-AAM) [ACCNAME-AAM] specifications for user agents. It leverages those core mappings and provides SVG-specific guidance to define how the SVG user agent must respond to keyboard focus and role, state, and property attributes provided in Web content via WAI-ARIA [WAI-ARIA]. The SVG-AAM also adapts the ACCNAME-AAM to make use of standard SVG features used to compute accessible names and description information exposed by platform accessibility APIs.

The SVG-AAM is part of the WAI-ARIA suite described in the WAI-ARIA Overview.

Status of This Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at

This is an Editor's Draft of SVG Accessibility API Mappings 1.0 by the SVG Accessibility Task Force, a joint task force of the Accessible Rich Internet Applications Working Group and the SVG Working Group. It extends Core Accessibility API Mappings 1.1 [CORE-AAM] and Accessible Name and Description: Computation and API Mappings 1.1 [ACCNAME-AAM], and is part of a suite of similar technology-specific Accessibility API Mappings specifications. This version expands the set of mappings for SVG features.

Feedback on any aspect of the specification is accepted. For this publication, the SVG Accessibility Task Force particularly seeks feedback on the following questions:

The editors have highlighted particularly problematic aspects of the specification, or areas where further clarification is likely to be required, in the form of Editor's Notes boxes throughout the text. Comments on these issues would be particularly appreciated.

To comment, file an issue in the W3C ARIA GitHub repository, using the "graphics" label in the issue. If this is not feasible, send email to (comment archive). Comments are requested by 30 September 2016. In-progress updates to the document may be viewed in the publicly visible editors' draft.

This document was published by the Accessible Rich Internet Applications Working Group and the SVG Working Group as an Editor's Draft. Comments regarding this document are welcome. Please send them to (subscribe, archives).

Publication as an Editor's Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document was produced by groups operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures (Accessible Rich Internet Applications Working Group) and a public list of any patent disclosures (SVG Working Group) made in connection with the deliverables of each group; these pages also include instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

This document is governed by the 1 March 2017 W3C Process Document.

1. Introduction §

This section is non-normative.

In traditional Graphical User Interface (GUI) applications, components of the User Interface (UI) are displayed when needed and hidden when not needed based on user interactions. Accessibility APIs are used to communicate semantics about the user interface to assistive technologies used by people with disabilities. These APIs constitute a contract between applications and assistive technologies, such as screen readers, magnifiers, alternate input devices, and speech command and control, to enable them to access the appropriate semantics needed to produce a usable alternative to interactive applications or complex documents. For example, screen-reading software for blind users can determine whether a particular UI component is a menu, button, text field, list box, etc. It can also present the information in tables or lists in a way that provides context for each piece of text.

For web documents and applications, the essential semantic information is encapsulated within the Document Object Model (DOM). Assistive technologies obtain this information from the user agent, which maps elements and attributes to the platform Accessibility API.

In traditional SVG documents, most SVG elements do not provide semantic information of value to assistive technologies. Instead, they represent low-level vector graphics drawing directives. That element only has meaning to assistive technologies if the author provides alternative text, descriptions, or WAI-ARIA semantics.

Both Scalable Vector Graphics (SVG) version 1 [SVG1] and version 1.1 [SVG11] included elements for accessibility purposes, such as <title> and <desc>. However, prior to this specification there was no normative guidance as to how user agents should expose this information to assistive technologies, or how to integrate it with host languages and validators that support WAI-ARIA.

SVG 2 now incorporates traditional keyboard navigation from HTML 5. The user agent provides sequential focus navigation to SVG elements that are interactive by default (links and audio/video elements with controls), or that the author has indicated may receive focus (through the use of tabindex attribute). Focus may also be set or removed programmatically by scripts, so that authors may implement more complex keyboard focus patterns.

SVG closely aligns with DOM Level 3 Core and HTML5 events to facilitate JavaScript use. Through the use of technologies such as JavaScript, Ajax, and CSS, authors can make SVG look and behave more interactive without having to reload the page with each user interaction. With SVG, authors are able to produce rich interactive charts and drawings.

To allow the author to express and dynamically update their intended semantics, SVG 2 supports the use of WAI-ARIA roles, states, and properties. WAI-ARIA enables rich SVG-drawn Internet applications to have the same accessibility features as GUI applications installed on their operating system. Authors may include WAI-ARIA attributes in their markup and user agents will translate it to the platform accessibility APIs.

For an introduction to WAI-ARIA, see the WAI-ARIA Overview. The SVG Accessibility API Mappings specification (this document) defines how WAI-ARIA features interact with the native semantics of the SVG language. It is part of a set of resources that define and support the WAI-ARIA specification, including the following documents:

This specification begins by providing a general overview of accessibility APIs and the hierarchy of accessible objects known as the accessibility tree. The following sections define how SVG host language elements and content — with or without WAI-ARIA roles, states, and properties applied — map to accessibility APIs. Other sections give guidance on calculating text alternatives, mapping actions to events, event processing, special document handling procedures, and error handling.

This guide relies heavily on the accessibility API mappings defined in the [CORE-AAM] and [ACCNAME-AAM] specifications but defines changes in mappings due to features in the [SVG] host language. Key areas of difference stem from the intrinsic host language semantics of SVG:

1.1 Accessibility APIs  §

To provide access to GUI applications, software applications expose the necessary information needed by assistive technologies to interoperate with it through accessibility APIs. The accessibility information exposed through the accessibility APIs must be maintained throughout the applications lifecycle.

In Web pages the Document Object Model (DOM) is used to represent the structure and state of the elements in the document being rendered by a user agent. The elements of the document are organized into a hierarchy of nodes known as the DOM tree. User agents map DOM to accessibility APIs, in the same way desktop applications map UI components. The information provided to the accessibility API is used to support assistive technologies, with the expectation that the information passed from the DOM matches the semantic intent of the author. The author may communicate this semantic intent by using native features of the document language or by using WAI-ARIA, if native features are not available.

Authors use SVG to create a broad range of applications and drawings. The information needed to support accessibility APIs in SVG comes from a combination of semantics from the elements themselves but also the additional semantics provided by WAI-ARIA and the modular extensions to WAI-ARIA supported by this specification.

A screen reader or other assistive technology uses the semantic information exposed via the accessibility API to provide an alternative rendering of an application that is meaningful to a user.

Accessibility APIs supported by this document (and the other specifications it extends) are:

If user agent developers need to expose information using other accessibility APIs, it is recommended that they work closely with the developer of the platform where the API runs, and assistive technology developers on that platform.

1.2 The Accessibility Tree and the DOM Tree §

The accessibility tree and the DOM tree are parallel structures. Roughly speaking, the accessibility tree is a subset of the DOM tree, augmented to include the user interface objects of the user agent as well as the objects of the document. Accessible objects are created in the accessibility tree for every DOM element that should be exposed to an assistive technology. An element could be exposed because it may fire an accessibility event or because it has a property, relationship or feature which needs to be exposed. Generally, if something can be omitted it will be, for reasons of performance and simplicity. For example, a <span> with just a style change and no semantics may not get its own accessible object, but the style change will be exposed by other means.

2. Normative User Agent Implementation Requirements for SVG §

This specification indicates whether a section is normative or informative and the classification applies to the entire section. A statement "This section is normative" or "This section is informative" applies to all sub-sections of that section.

Normative sections provide requirements that user agents must follow for an implementation to conform to this specification. The keywords MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in Keywords for use in RFCs to indicate requirement levels [rfc2119]. RFC-2119 keywords are formatted in uppercase and contained in a strong element with class="rfc2119". When the keywords shown above are used, but do not share this format, they do not convey formal information in the RFC 2119 sense, and are merely explanatory, i.e., informative. As much as possible, such usages are avoided in this specification.

Informative sections provide information useful to understanding the specification. Such sections may contain examples of recommended practice, but it is not required to follow such recommendations in order to conform to this specification.

3. Important Terms §

While some terms are defined in place, the following definitions are used throughout this document.

Accessibility API

Operating systems and other platforms provide a set of interfaces that expose information about objects and events to assistive technologies. Assistive technologies use these interfaces to get information about and interact with those widgets. Examples of accessibility APIs are Microsoft Active Accessibility [MSAA], Microsoft User Interface Automation [UI-AUTOMATION], MSAA with UIA Express [UIA-EXPRESS], the Mac OS X Accessibility Protocol [AXAPI], the Linux/Unix Accessibility Toolkit [ATK] and Assistive Technology Service Provider Interface [AT-SPI], and IAccessible2 [IAccessible2].

Accessibility Subtree

An accessible object in the accessibility tree and its descendants in that tree. It does not include objects which have relationships other than parent-child in that tree. For example, it does not include objects linked via aria-flowto unless those objects are also descendants in the accessibility tree.

Accessibility Tree

Tree of accessible objects that represents the structure of the user interface (UI). Each node in the accessibility tree represents an element in the UI as exposed through the accessibility API; for example, a push button, a check box, or container.

Accessible Description

An accessible description provides additional information, related to an interface element, that complements the accessible name. The accessible description might or might not be visually perceivable.

Accessible Name

The accessible name is the name of a user interface element. Each platform accessibility API provides the accessible name property. The value of the accessible name may be derived from a visible (e.g., the visible text on a button) or invisible (e.g., the text alternative that describes an icon) property of the user interface element. See related accessible description.

A simple use for the accessible name property may be illustrated by an "OK" button. The text "OK" is the accessible name. When the button receives focus, assistive technologies may concatenate the platform's role description with the accessible name. For example, a screen reader may speak "push-button OK" or "OK button". The order of concatenation and specifics of the role description (e.g., "button", "push-button", "clickable button") are determined by platform accessibility APIs or assistive technologies.

Accessible object

A node in the accessibility tree of a platform accessibility API. Accessible objects expose various states, properties, and events for use by assistive technologies. In the context of markup languages (e.g., HTML and SVG) in general, and of WAI-ARIA in particular, markup elements and their attributes are represented as accessible objects.

Activation behavior

The action taken when an event, typically initiated by users through an input device, causes an element to fulfill a defined role. The role may be defined for that element by the host language, or by author-defined variables, or both. The role for any given element may be a generic action, or may be unique to that element. For example, the activation behavior of an HTML or SVG <a> element shall be to cause the user agent to traverse the link specified in the href attribute, with the further optional parameter of specifying the browsing context for the traversal (such as the current window or tab, a named window, or a new window); the activation behavior of an HTML <input> element with the type attribute value submit shall be to send the values of the form elements to an author-defined IRI by the author-defined HTTP method.

Assistive Technologies

Hardware and/or software that:

  • relies on services provided by a user agent to retrieve and render Web content
  • works with a user agent or web content itself through the use of APIs, and
  • provides services beyond those offered by the user agent to facilitate user interaction with web content by people with disabilities

This definition may differ from that used in other documents.

Examples of assistive technologies that are important in the context of this document include the following:

  • screen magnifiers, which are used to enlarge and improve the visual readability of rendered text and images;
  • screen readers, which are most-often used to convey information through synthesized speech or a refreshable Braille display;
  • text-to-speech software, which is used to convert text into synthetic speech;
  • speech recognition software, which is used to allow spoken control and dictation;
  • alternate input technologies (including head pointers, on-screen keyboards, single switches, and sip/puff devices), which are used to simulate the keyboard;
  • alternate pointing devices, which are used to simulate mouse pointing and clicking.

In this specification, attribute is used as it is in markup languages. Attributes are structural features added to elements to provide information about the states and properties of the object represented by the element.


A set of instance objects that share similar characteristics.


A deprecated role, state, or property is one which has been outdated by newer constructs or changed circumstances, and which may be removed in future versions of the WAI-ARIA specification. User agents are encouraged to continue to support items identified as deprecated for backward compatibility. For more information, see Deprecated Requirements in the Conformance section.

Desktop focus event

Event from/to the host operating system via the accessibility API, notifying of a change of input focus.


In this specification, element is used as it is in markup languages. Elements are the structural elements in markup language that contains the data profile for objects.


A programmatic message used to communicate discrete changes in the state of an object to other objects in a computational system. User input to a web page is commonly mediated through abstract events that describe the interaction and can provide notice of changes to the state of a document object. In some programming languages, events are more commonly known as notifications.


Translated to platform-specific accessibility APIs as defined in the WAI-ARIA User Agent Implementation Guide. [WAI-ARIA-IMPLEMENTATION]

Graphical Document

A document containing graphic representations with user-navigable parts. Charts, maps, diagrams, blueprints, and dashboards are examples of graphical documents. A graphical document is composed using any combination of symbols, images, text, and graphic primitives (shapes such as circles, points, lines, paths, rectangles, etc).


Indicates that the element is not visible, perceivable, or interactive to any user. An element is considered hidden if it or any one of its ancestor elements is not rendered or is explicitly hidden.


Content provided for information purposes and not required for conformance. Content required for conformance is referred to as normative.

Keyboard Accessible

Accessible to the user using a keyboard or assistive technologies that mimic keyboard input, such as a sip and puff tube. References in this document relate to WCAG 2.0 Guideline 2.1: Make all functionality available from a keyboard [WCAG20].


A type of region on a page to which the user may want quick access. Content in such a region is different from that of other regions on the page and relevant to a specific user purpose, such as navigating, searching, perusing the primary content, etc.

Live Region

Live regions are perceivable regions of a web page that are typically updated as a result of an external event when user focus may be elsewhere. These regions are not always updated as a result of a user interaction. This practice has become commonplace with the growing use of Ajax. Examples of live regions include a chat log, stock ticker, or a sport scoring section that updates periodically to reflect game statistics. Since these asynchronous areas are expected to update outside the user's area of focus, assistive technologies such as screen readers have either been unaware of their existence or unable to process them for the user. WAI-ARIA has provided a collection of properties that allow the author to identify these live regions and process them: aria-live, aria-relevant, aria-atomic, and aria-busy.

Primary Content Element

An implementing host language's primary content element, such as the body element in HTML.

Managed State

Accessibility API state that is controlled by the user agent, such as focus and selection. These are contrasted with "unmanaged states" that are typically controlled by the author. Nevertheless, authors can override some managed states, such as aria-posinset and aria-setsize. Many managed states have corresponding CSS pseudo-classes, such as :focus, and pseudo-elements, such as ::selection, that are also updated by the user agent.

Nemeth Braille

The Nemeth Braille Code for Mathematics is a braille code for encoding mathematical and scientific notation. See Nemeth Braille on Wikipedia.


Basic type of object in the DOM tree or accessibility tree. DOM nodes are further specified as Element or Text nodes, among other types. The nodes of an accessibility tree are accessible objects.


Required for conformance. By contrast, content identified as informative or "non-normative" is not required for conformance.


In the context of user interfaces, an item in the perceptual user experience, represented in markup languages by one or more elements, and rendered by user agents.

In the context of programming, the instantiation of one or more classes and interfaces which define the general characteristics of similar objects. An object in an accessibility API may represent one or more DOM objects. Accessibility APIs have defined interfaces that are distinct from DOM interfaces.

A description of the characteristics of classes and how they relate to each other.


Usable by users in ways they can control. References in this document relate to WCAG 2.0 Principle 2: Content must be operable [WCAG20]. See Keyboard Accessible.

Owned Element

An 'owned element' is any DOM descendant of the element, any element specified as a child via aria-owns, or any DOM descendant of the owned child.

Owning Element

An 'owning element' is any DOM ancestor of the element, or any element with an aria-owns attribute which references the ID of the element.


Presentable to users in ways they can sense. References in this document relate to WCAG 2.0 Principle 1: Content must be perceivable [WCAG20].


Attributes that are essential to the nature of a given object, or that represent a data value associated with the object. A change of a property may significantly impact the meaning or presentation of an object. Certain properties (for example, aria-multiline) are less likely to change than states, but note that the frequency of change difference is not a rule. A few properties, such as aria-activedescendant, aria-valuenow, and aria-valuetext are expected to change often. See clarification of states versus properties.


A connection between two distinct things. Relationships may be of various types to indicate which object labels another, controls another, etc.


Main indicator of type. This semantic association allows tools to present and support interaction with the object in a manner that is consistent with user expectations about other objects of that type.

Root WAI-ARIA node

The primary element containing non-metadata content. In many languages, this is the document element but in HTML, it is the <body>.


The meaning of something as understood by a human, defined in a way that computers can process a representation of an object, such as elements and attributes, and reliably represent the object in a way that various humans will achieve a mutually consistent understanding of the object.


A state is a dynamic property expressing characteristics of an object that may change in response to user action or automated processes. States do not affect the essential nature of the object, but represent data associated with the object or user interaction possibilities. See clarification of states versus properties.


Any document created from a <frame>, <iframe> or similar mechanism. A sub-document may contain a document, an application or any widget such as a calendar pulled in from another server. In the accessibility tree there are two accessible objects for this situation—one represents the <frame>/<iframe> element in the parent document, which parents a single accessible object child representing the spawned document contents.

Target Element

An element specified in a WAI-ARIA relation. For example, in <div aria-controls=”elem1”>, where “elem1” is the ID for the target element.


A hierarchical definition of how the characteristics of various classes relate to each other, in which classes inherit the properties of superclasses in the hierarchy. A taxonomy can comprise part of the formal definition of an ontology.

Text node

Type of DOM node that represents the textual content of an attribute or an element. A Text node has no child nodes.

Tooltip attribute

Any host language attribute that would result in a user agent generating a tooltip such as in response to a mouse hover in desktop user agents.


Presentable to users in ways they can construct an appropriate meaning. References in this document relate to WCAG 2.0 Principle 3: Information and the operation of user interface must be understandable [WCAG20].

User Agent

Any software that retrieves, renders and facilitates end user interaction with Web content. This definition may differ from that used in other documents.


A reference to a target element in the same document that has a matching ID


Discrete user interface object with which the user can interact. Widgets range from simple objects that have one value or operation (e.g., check boxes and menu items), to complex objects that contain many managed sub-objects (e.g., trees and grids).

4. Supporting Keyboard Navigation §

Enabling keyboard navigation in web applications is a necessary step toward making accessible web applications possible. Not only is the keyboard the primary input device for many users, but other accessibile input devices use keyboard events to communicate with the user agent.

The Scalable Vector Graphics (SVG) 1 [SVG1] and 1.1 [SVG11] specifications included only very limited keyboard support (access keys for animations). Many user agents implemented tabbed focus for links, but there was no declarative or scripted means for authors to control this behavior. Scalable Vector Graphics (SVG) 2 [SVG2] introduces keyboard navigation and focus control based on the HTML tabindex model.

Conforming user agents MUST conform to Supporting Keyboard Navigation requirements in [CORE-AAM].


The SVG Accessibility Task Force intends to develop more detailed guidelines for authors and user agents regarding navigation in graphical documents.

5. Mapping WAI-ARIA to Accessibility APIs §

WAI-ARIA support was formally introduced to SVG in Scalable Vector Graphics (SVG) 2 [SVG2], which allows ARIA attributes to be used in the default namespace. This section defines how WAI-ARIA semantics are exposed to assistive technologies through platform Accessibility APIs and how SVG elements are mapped to Accessibility APIs based on WAI-ARIA.

5.1 General rules for exposing WAI-ARIA semantics §

SVG user agents MUST conform to General rules for exposing WAI-ARIA semantics in [CORE-AAM], with the additions described in the following sub-sections.

5.1.1 Excluding Elements from the Accessibility Tree §

Certain elements in the DOM are not exposed via the accessibility API. The section Excluding Elements from the Accessibility Tree of the Core Accessibility API Mappings [CORE-AAM] outlines the general rules for excluding elements. One factor is whether host language semantics specify that the element should not be displayed.

The SVG language defines numerous elements that fit this criteria. Many SVG elements are never directly rendered to the screen, while others may or may not be rendered or displayed, depending on context or CSS styling. Elements which are neither perceivable nor interactive should not be included in the accessibility tree exposed to accessibility APIs. This section details the expected interpretation of SVG host language semantics.


The other factors for excluding elements, as described in the Core Accessibility API Mappings, are as follows:

In all cases, an element will not be excluded if it can currently receive focus based on user interaction. Consult the original document [CORE-AAM] for the normative text.

Editor's note

Links to CORE-AAM and ARIA 1.1 will need to be updated after clarifications with respect to these points have been pushed to the master versions of those specifications.

Elements which are never directly rendered to screen, nor represented by an interactive region in a graphic, do not need a corresponding accessible object. User agents MUST NOT include any elements, or their descendant content, as an accessible object in the accessibility tree that are indicated as no accessible object created in the SVG Element Mapping Table. User agents SHOULD also exclude any other element defined by past or future SVG specifications or modules that specifically indicate the element is never directly rendered.

For example, elements that represent filters, gradients, or gradient stops will never create an accessible object. Shape elements or image elements that are included in an SVG definitions section or as part of a pattern will also not have accessible objects, because the semantics of the ancestor defs or pattern element preclude that entire DOM subtree from being represented in the accessibility tree.

Elements that are excluded from the accessibility tree might still be used in the name and description computation of another element, as defined in the Name and Description section. Non-rendered elements may also be used as the templates for rendered element instances created by a use element, as described in the section on Use-Element Shadow Trees.


Although they are not directly included in the accessibility tree, animation and view elements can affect the accessible objects representing their target elements, as described under Special Processing Requiring Additional Computation.

In addition, SVG 1.1 [SVG11] defines the conditional processing attributes systemLanguage, requiredExtensions, and requiredFeatures. These may be used individually or in combination with the switch element to prevent content from being rendered under certain conditions, or to select between alternate versions of content.

SVG user agents MUST NOT expose to accessibility APIs any elements that are not rendered because of conditional processing attributes on that element or because of the position of that element within a switch construct. The switch element itself SHOULD be omitted as if it had a role of none or presentation.

The rendering of SVG elements is also affected by CSS styling properties, which may be specified using stylesheet rules, inline styles, presentation attributes, or animations. Regardless of how the style property is specified, the effect depends on the final computed value determined by the CSS cascade [CSS-CASCADE-3]. User agents MUST NOT expose to accessibility APIs any element that is not rendered because its computed style includes a value of none for the display property.

Other style properties can prevent an element, which is otherwise part of the rendering tree, from creating any visible representation in the rendered graphic. Such elements may still be interactive; they may receive keyboard focus or they may be associated with a region of the graphic that is responsive to pointer input events.

For the purpose of SVG, an element is considered hidden if it is neither visible, according to the computed value of the visibility property, nor interactive to pointer users. according to the pointer-events property. User agents SHOULD NOT expose to accessibility APIs any element that is hidden in this sense, unless the author explicitly overrides the hiding by setting the aria-hidden attribute to false.

In the case of container elements (such as g or svg), the element is not considered hidden if any of its descendent content is visible or can receive user events, regardless of the computed value of visibility on the element itself. Similarly, a use element may include visible or interactive component graphics, despite having style properties that would cause an individual shape element to be hidden. The use element MUST be considered visible or interactive if any elements within its shadow tree are visible or interactive. (The container or the use element may, however, still be considered presentational if it does not have any other reason to include it in the accessibility tree.) A shape element with markers is visible or interactive if any of its markers are visible or interactive.


An element with a computed value of visibility: hidden can be interactive to pointer users for the following values of the pointer-events property:

  • painted, for any rendered element except shape or a text where both the fill and stroke properties have a computed value of none
  • fill
  • stroke
  • all
  • bounding-box

An element that is currently positioned off-screen, or that is obscured by other elements, is not considered hidden. User agents should expose this state through other means, as described in the State and Property Mapping section of the Core Accessibility API Mappings [CORE-AAM].


Various other style properties and geometric attributes (of an element itself or an ancestor element) can make an element invisible. For simplicity, flexibility, and performance reasons, these are not considered a hiding method that excludes elements from the accessibility tree.

When using properties other than display or visibility to hide inactive content, authors can use the aria-hidden attribute to indicate that assistive technologies should ignore the element and its descendents.

Editor's note

Previous drafts of this specification also considered the fill and stroke properties, when both set to a value of none, as a valid way to hide an element. This has been removed as it introduced excessive complexity. Some SVG elements (e.g., embedded images) are not affected by stroke and fill; even those that are can be visible without it, because of markers or filter effects. Furthermore, it could result in identical-looking graphics (for example: one that used fill: transparent instead of fill: none) having markedly different accessibility trees.

Note, however, that the fill and stroke properties may still have an indirect effect on the inclusion of an element, depending on the value of the pointer-events property.

Editor's note

The strict exclusion of non-rendered metadata elements, including desc, from the accessibility tree means that their content will only be available as plain text, not as structured alternative representations that a user can navigate in browsing mode.

This contradicts the original intent of the SVG specifications, which allows these elements to include structured content, including HTML-namespaced content. The SVG 1 specifications had suggested that this could be alternatively presented as CSS-formated XML text, but this is not supported by the user agent/assistive technology combinations currently in use.

The editors welcome feedback and suggestions on alternative ways to represent this hidden alternative content in a way consistent with user agent and accessibility API implementations.

Editor's note

The definition of hidden elements used here is more complex than that currently suggested in the Core mapping document [CORE-AAM]. The CORE-AAM spec implies that invisible elements (visibility: hidden) would be treated equivalent to un-rendered elements (display: none).

For SVG, this is not always appropriate. In many cases, the invisible hidden elements are of semantic importance (because they are interactive) while visible elements are presentational only. For example, large invisible elements are often used to provide easy-to-hit targets for points in a map or datachart. Because these elements react to pointer events, they are effectively perceivable to pointer users, and should be perceivable and interactive to users of assistive technologies as well.

The editors of this document will be coordinating with the editors of CORE-AAM to develop clear and universal guidance. Feedback from authors and implementers is appreciated.

5.1.2 Including Elements in the Accessibility Tree §

Many SVG elements—although rendered to the screen—do not have an intrinsic semantic meaning. Instead, they represent components of the visual presentation of the document. To simplify the accessible representation of the document, these purely presentational elements should normally be omitted from the accessibility tree, unless the author explicitly provides semantic content.

However, any rendered SVG element may have semantic meaning. Authors indicate the significance of the element by including alternative text content or WAI-ARIA attributes. This section defines the rules for including normally-omitted elements in the accessibility tree.

The following graphical and container elements in the SVG namespace SHOULD NOT be included in the accessibility tree, except as described in this section:

  • shape elements (circle, ellipse, line, path, polygon, polyline, rect)
  • the use element
  • the grouping (g) element
  • the image element
  • the mesh element
  • text formatting elements (textPath, tspan)
  • the foreignObject element

Although these elements are omitted from the accessibility tree, their child content is still processed, as if it was a direct child of the nearest ancestor node in the DOM tree that is included in the accessibility tree. In other words, the markup elements are treated as if they had a role of none or presentation.

For use elements, the elements and text in their associated shadow tree MUST be processed as if it was child content of the use element, following the conditions specified in processing requiring additional computation. This means that elements from the shadow tree can be included in the accessibility tree even if the use element itself has a (default or author-supplied) role of presentation.

SVG user agents MUST provide an accessible object in the accessibility tree for rendered SVG elements that meet any of the following criteria, unless they are excluded from the accessibility tree per the rules in Excluding Elements from the Accessibility Tree:

  • It has at least one direct child title element or desc' element that is not empty after trimming whitespace. User agents MAY include elements with these child elements without checking for valid text content.
  • It has a non-empty aria-label attribute (after trimming whitespace), or an aria-labelledby attribute or aria-describedby attribute containing valid IDREF tokens. User agents MAY include elements with these attributes without checking for validity.
  • It has a valid integer 'tabindex' attribute.
  • The author has provided an allowed, non-abstract WAI-ARIA role other than none or presentation.
  • It meets any of the criteria listed in the section Including Elements in the Accessibility Tree of the Core Accessibility API Mappings specification [CORE-AAM].

At the time of drafting this document, those criteria are as follows:

The latest version of the source document [CORE-AAM] should be consulted for the normative text.

The exception for hidden elements means that SVG metadata elements or other non-rendered content may be used in the accessible name and description of another element without themselves being included in the accessiblity tree. For example, current best practice for fallback browser support is to use aria-labelledby and aria-describedby to redundantly link to title and desc child elements. Including these elements as separate nodes in the tree would unnecessarily complicate the document presented to screen reader users.

Interactive elements are covered by the requirement regarding elements that may fire an Accessibility API event. Specifically, for SVG the following elements are interactive and MUST be included in the accessibility tree, without exception, regardless of whether they would otherwise be considered hidden or presentational:

  • A rendered element (or instance of an element in a use-element shadow tree) with a positive integer value for the tabindex attribute, or which is focusable by default and has not been removed from the tab order with a negative integer tabindex attribute, which may receive keyboard focus and therefore keyboard input events.
  • A rendered element (or instance of an element) that currently has keyboard focus (e.g., after being focused from a script), which may receive keyboard input events.

With regards to pointer events, which bubble up the DOM tree, the exact element that receives the event may not have semantic meaning (that is, it may still be presentational). However, the ability to receive pointer events overrides any exclusion based on the visibility: hidden style property.


The tabindex attribute and the pointer-events property have no impact on elements which are not rendered at all, because of the display: none property or because of host language semantics.

6. Conflicts between native markup semantics and WAI-ARIA §

SVG user agents MUST conform to Conflicts between native markup semantics and WAI-ARIA in [CORE-AAM] where the host language is [SVG] and the native semantics are as described in the SVG Element Mapping Table, the State and Property Mapping section, and the Special Processing Requiring Additional Computation section.

7. Exposing attributes that do not directly map to accessibility API properties §

SVG user agents MUST conform to Exposing attributes that do not directly map to accessibility API properties in [CORE-AAM].

8. Role mapping §

Platform accessibility APIs traditionally have had a finite set of predefined roles that are expected by assistive technologies on that platform and only one or two roles may be exposed.

WAI-ARIA only supports one active role at a time. However, multiple roles may be specified as an ordered set of space-separated valid role tokens. The additional roles are fallback roles, similar to the concept of specifying multiple font families in case the first choice font is not supported. This allows the role taxonomy to be extended in future for specialized applications. The entire role string is exposed to accessibility technologies where possible, so they can respond appropriately even if there is no equivalent role in the platform API.

8.1 General Rules §

[SVG] user agents MUST conform to the Role Mapping General Rules accessibility API computational requirements in [CORE-AAM].

8.2 SVG Element Mapping Table §

This section defines how elements in SVG2 map to WAI-ARIA roles and platform accessibility APIs based on their native host language semantics, including which WAI-ARIA roles may be applied. This section refers directly to both the Role Mappings in the Core Accessibility API Mappings [CORE-AAM] specification and the Role Mappings in the Graphics Accessibility API Mappings [GRAPHICS-AAM] specification, which define how WAI-ARIA roles are mapped to platform accessibility APIs.

9. State and Property Mapping §

This section describes how to expose WAI-ARIA states and object properties. SVG user agents MUST conform to the State and Property Mapping accessibility API computational requirements in [CORE-AAM].

In addition, the following attributes on SVG elements require special processing:

The xlink prefix is used here to refer to the XLink namespace, Attributes of the given names in that namespace should be processed as described here, regardless of how the namespace is applied in markup or via script. XLink-namespaced attributes are deprecated in SVG 2 [SVG], but user agents are still expected to process them, to maintain backwards compatibility. Nonetheless, SVG 2 requires that the href attribute in the default namespace takes precedence over the XLink equivalent if both are set on a given element. In that case, the XLink version is not valid for the purpose of the name and description computation.

The effective attribute for a given element, and therefore the state and property mapping, may be affected by declarative animation as described in the Animation section.

10. Special Processing Requiring Additional Computation §

10.1 Name and Description §

When computing an accessible name or accessible description, user agents MUST conform to the section titled Text Alternative Computation of the Accessible Name and Description specification [ACCNAME-AAM], with the following modifications for the SVG host language:

  1. Replace step 2A with the following:
    If the current node traversal is not a result of following a aria-labelledby or aria-describedby reference, and the current node is not included in the accessibility tree according to the rules in Excluding Elements from the Accessibility Tree and Including Elements in the Accessibility Tree, return the empty string.
  2. Replace step 2D with the following:

    Otherwise, if performing a text alternative computation for an accessible name:

    • If the current node has at least one direct child title element, select the appropriate title based on the language rules for the SVG specification, and return the title text alternative as a flat string.
    • If the current node is a link, and there was no child title element, but it has an xlink:title attribute, return the value of that attribute.

    If performing a text alternative computation for an accessible description:

    • If the current node has at least one direct child desc element, select the appropriate description based on the language rules for the SVG specification, and return the concatenated text content of the description.
  3. In step 2F, modify step iii by replacing:

    For each child node of the current node:


    If the element is a text container element, for each child node of the current node:

  4. Replace step 2H with the following:

    Otherwise, if performing a text alternative computation for an accessible description, and the current node has at least one direct child title element, but the title elements were not used when generating the accessible name for the node, then select the appropriate title based on the language rules for the SVG specification, and return the title text content as the description.

    Otherwise, if the current node is a link, and it has an xlink:title attribute that was not used for the accessible name, return the value of that attribute.

When determining whether an element has a direct child element, only actual DOM child elements are considered, regardless of whether or not the parent element has an associated shadow tree.


The net effect of these changes is to establish the following priority of alternative text values for the accessible name:

  1. aria-labelledby
  2. aria-label
  3. a direct child title element
  4. xlink:title attribute on a link
  5. for text container elements, the text content

The alternative text values for the accessible description have the following priority:

  1. aria-describedby
  2. a direct child desc element
  3. for text container elements, the text content
  4. a direct child title element that provides a tooltip, when ARIA label attributes are used to provide the accessible name
  5. xlink:title attribute on a link, if not used to provide the accessible name

The aria-labelledby and aria-describedby properties can reference the element on which they are given, in order to concatenate one of the other text alternatives with text from a separate element.

10.2 Widget Values §

SVG user agents MUST conform to the Widget Values accessibility API computational requirements in [CORE-AAM].

10.3 Relations §

SVG user agents MUST conform to the Relations accessibility API computational requirements in [CORE-AAM].

Editor's note

The CORE-AAM section on Relations requires that assistive technologies SHOULD provide a method to navigate to (and within) structured content referenced by aria-describedby. This would be difficult to implement with the current approach of not including non-rendered descriptive content in the accessibility tree.

10.4 Group Position §

SVG user agents MUST conform to the Group Position accessibility API computational requirements in [CORE-AAM].

10.5 Use-Element Shadow Trees §

This specification uses the terms shadow tree and host as defined by the DOM standard [DOM], and the terms use-element shadow tree and element instance as defined by SVG 2 [SVG].

SVG user agents MUST process the element instances generated for the use-element shadow tree as if those elements were children of the use element itself, with the following conditions:

Editor's note

The editors will be working to harmonize these guidelines with general rules for WAI-ARIA processing of shadow tree elements, such as in web components. Feedback from implementers is requested on the practical feasibility of encapsulating IDREF matching in this manner.

10.6 SVG Views §

SVG provides authors with the means of specifying a particular view of the document. A view is applied through the target fragment of the document URL, either by referencing the id of a view element, or by specifying a custom view using the SVG view specification fragment identifier.

The visual effect of an SVG view is equivalent to modifying attributes on the parent svg element (for a view element) or the root element (for an SVG view specification fragment). User agents SHOULD therefore modify the accessible object representing that svg when a view is in effect.

In particular, the following changes should be made:

A navigation action towards a URL including an SVG view specification or the id of a view element SHOULD be treated as a series of property change events on the target svg element followed by navigation to that element. User agents MAY represent the property changes as the deletion of existing nodes followed by the insertion of modified nodes.

Editor's note

SVG Views provide a functionality unique to SVG, with no direct equivalent in HTML documents. They may be used as the end-point of a navigation action, but are not themeselves a container for the targetted content. They may also be used at the time an SVG document is embedded, to subset the visual content to only include a portion of the file.

The editors would be very interested in practical examples of SVG views in use, so that we may determine if the above requirements are sufficient. Particular issues to consider include whether special rules are required for managing keyboard focus, or for excluding content that is rendered offscreen when a view is in effect.

The editors will also be examining existing behavior of user agent/assistive technology combinations when browsing SVG documents with views, and will be proposing author best practices accordingly.

In addition, there have been proposals to deprecate the viewTarget attribute, and the corresponding parameter for SVG view fragments, in SVG 2. Their intended use, to trigger visual styling changes in the target element, has never been well implemented by user agents. Without viewTarget, there would be no native way in SVG to indicate the semantic target of a given view. For view elements (but not view fragments), a possible alternative is to encourage authors to directly specify aria-flowsto attributes. These would then need to be mapped to the relevant svg element.

This raises the question of whether any other (or all) ARIA attributes should be mapped from the view element onto the accessible object for the svg element while the view is in effect. This would require careful consideration of all possible consequences and conflicts. For example, should a view be able to change the role of the SVG element?

10.7 Declarative Animation §

SVG animation elements may modify element attributes and style properties. CSS animations may modify style properties. Either type of animation may be triggered by user interaction, or may run on a fixed schedule.

If an animation changes the effective value of a WAI-ARIA state or property attribute, or an SVG attribute that is described in the State and Property Mapping section, the User Agent MUST expose the change in the same way as if the actual attribute value was changed.


The role attribute is not animatable.

If an animated change affects whether an element is rendered, or change whether it is visible in a way that would cause it to be excluded from the accessibility tree, user agents SHOULD expose the change according to the guidelines in the Changes to document content or node visibility section of the Core Accessibility API Mappings [CORE-AAM].

11. Actions §

SVG user agents MUST conform to the Actions accessibility API computational requirements in [CORE-AAM].

12. Events §

User agents fire events for user actions, WAI-ARIA state changes, changes to document content or node visibility, changes in selection, and operation of menus. Conforming user agents MUST support the [CORE-AAM] Events mappings.

13. Special Document Handling Procedures §

SVG user agents MUST conform to the Special Document Handling Procedures in [CORE-AAM].

A. Appendices §

A.1 References §

Placeholder for references

A.2 Acknowledgments §

This section is non-normative.

The following people contributed to the development of this document.

A.2.1 Participants active in the SVG Accessibility Task Force active at the time of publication §

  • Amelia Bellamy-Royds
  • Erik Dahlström (Opera)
  • Amy Dai (Oracle Corporation)
  • Fred Esch (IBM Corporation)
  • Cameron McCormack (Mozilla Foundation)
  • Charles Nevile (Yandex)
  • Charu Pandhi (IBM Corporation)
  • Janina Sajka
  • Doug Schepers (W3C)
  • Rich Schwerdtfeger (Knowbility)
  • Léonie Watson (The Paciello Group, LLC)
  • Jason White (Educational Testing Service)

A.2.2 Enabling funders §

This publication has been funded in part with Federal funds from the U.S. Department of Education, National Institute on Disability, Independent Living, and Rehabilitation Research (NIDILRR) under contract number ED-OSE-10-C-0067. The content of this publication does not necessarily reflect the views or policies of the U.S. Department of Education, nor does mention of trade names, commercial products, or organizations imply endorsement by the U.S. Government.

B. References §

B.1 Normative references §

Accessible Name and Description: Computation and API Mappings 1.1. Joseph Scheuhammer; Michael Cooper; Andi Snow-Weaver; Aaron Leventhal et al. W3C. W3C Working Draft. URL:
Core Accessibility API Mappings 1.1. Joseph Scheuhammer; Michael Cooper; Andi Snow-Weaver; Aaron Leventhal et al. W3C. W3C Working Draft. URL:
DOM Standard. Anne van Kesteren. WHATWG. Living Standard. URL:
Graphics Accessibility API Mappings. Amelia Bellamy-Royds; Fred Esch; Richard Schwerdtfeger et al. W3C. W3C Working Draft. URL:
HTML Accessibility API Mappings 1.0. Steve Faulkner; Jason Kiss; Cynthia Shelly; Alexander Surkov et al. W3C. W3C Working Draft. URL:
Scalable Vector Graphics (SVG) 1.0 Specification. Jon Ferraiolo. W3C. 4 September 2001. W3C Recommendation. URL:
Accessible Rich Internet Applications (WAI-ARIA) 1.1. James Craig; Michael Cooper; Shane McCarron et al. W3C. W3C Working Draft. URL:

B.2 Informative references §

WAI-ARIA Authoring Practicess 1.1. Matt King; James Nurthen; Michael Cooper; Michiel Bijl; Joseph Scheuhammer; Lisa Pappas; Richard Schwerdtfeger et al. W3C. W3C Working Draft. URL:
Assistive Technology Service Provider Interface. The GNOME Project. URL:
ATK - Accessibility Toolkit. The GNOME Project. URL:
Accessibility Programming Guide for OS X. Apple Corporation. URL:
CSS Cascading and Inheritance Level 3. Elika Etemad; Tab Atkins Jr.. W3C. 19 May 2016. W3C Candidate Recommendation. URL:
WAI-ARIA Graphics. Amelia Bellamy-Royds; Fred Esch; Rich Schwerdtfeger; Leonie Watson et al. W3C. W3C Working Draft. URL:
IAccessible2. Linux Foundation. URL:
Microsoft Active Accessibility (MSAA) 2.0. Microsoft Corporation. URL:
Key words for use in RFCs to Indicate Requirement Levels. S. Bradner. IETF. March 1997. Best Current Practice. URL:
Scalable Vector Graphics (SVG) 1.0 Specification. John Ferraiolo et al. W3C. W3C Recommendation. URL:
Scalable Vector Graphics (SVG) 1.1 (Second Edition). Erik Dahlström; Patrick Dengler; Anthony Grasso; Chris Lilley; Cameron McCormack; Doug Schepers; Jonathan Watt; John Ferraiolo; 藤沢 淳 (FUJISAWA Jun); Dean Jackson et al. W3C. W3C Recommendation. URL:
Scalable Vector Graphics (SVG) 2. Nikos Andronikos; Rossen Atanassov; Tavmjong Bah; Amelia Bellamy-Royds; Brian Birtles; Cyril Concolato; Erik Dahlström; Chris Lilley; Cameron McCormack; Doug Schepers; Dirk Schulze; Richard Schwerdtfeger; Satoru Takagi; Jonathan Watt et al. W3C. W3C Working Draft. URL:
UI Automation. Microsoft Corporation. URL:
The IAccessibleEx Interface. Microsoft Corporation. URL:
Accessible Rich Internet Applications (WAI-ARIA) 1.0. James Craig; Michael Cooper et al. W3C. W3C Recommendation. URL:
WAI-ARIA 1.0 User Agent Implementation Guide. Joseph Scheuhammer; Michael Cooper. W3C. 20 March 2014. W3C Recommendation. URL:
Web Content Accessibility Guidelines (WCAG) 2.0. Ben Caldwell; Michael Cooper; Loretta Guarino Reid; Gregg Vanderheiden et al. W3C. 11 December 2008. W3C Recommendation. URL: