This document outlines the requirements that the IndieUI Working Group has set for development of IndieUI: Events 1.0 and IndieUI: User Context 1.0. These requirements will be used to determine whether the IndieUI WG has met its goals as these specifications advance through the W3C Recommendation Track Process. This document introduces a series of user scenarios common to the two specifications, and a list of technical requirements needed to meet those scenarios for each specification. It also provides information about how the requirements are addressed. For background information on IndieUI: Events and IndieUI: User Context see the IndieUI Overview.

This is a First Public Working Draft of "Requirements for IndieUI: Events 1.0 and IndieUI: User Context 1.0" from the Independent User Interface (Indie UI) Working Group. The Working Group intends to develop this document and publish it as a Working Group Note to support the Recommendation-track deliverables IndieUI: Events 1.0 and IndieUI: User Context 1.0. "Requirements for IndieUI: Events 1.0 and IndieUI: User Context 1.0" addresses both those specifications, although in this version only requirements for IndieUI: Events have been elaborated. The document provides scenarios for web content interaction that need additional standards support to optimize interaction by people with disabilities, followed by requirements for the specifications to meet those scenarios. Where requirements are currently met by the specification, an appropriate link is provided.

Feedback on this document is essential to success of these technologies. The IndieUI WG asks in particular:

To comment on this document, send email to public-indie-ui-comments@w3.org (comment archive). Comments are requested by 23 May 2014. In-progress updates to the document may be viewed in the publicly visible editors' draft.

Introduction

Scripting usable interfaces can be difficult, especially when one considers that user interface design patterns differ across software platforms, hardware, and locales, and that those interactions can be further customized based on personal preference. Individuals are accustomed to the way the interface works on their own system, and their preferred interface frequently differs from that of the web application author's preferred interface. Some complex web applications can provide a much better experience if given access to information such as a user's preferred color, font, screen, and even restricted assistive technology settings such as a preference to render captions, or whether a screen reader is on.

Custom interfaces often don't take into account users who access web content via assistive technologies that use alternate forms of input such as screen readers, switch interfaces, or speech-based command and control interfaces. For example, a web page author may script a custom interface to look like a slider (e.g. one styled to look like an HTML "range" input) and behave like a slider when using standard mouse-based input, but there is no standard way for the value of the slider to be controlled programmatically, so the control may not be usable without a mouse or other pointer-based input.

IndieUI: Events defines a way for web authors to register for these request events. Authors declaritively define which actions or behaviors a view responds to, and when it is appropriate for browsers to initiate these events. IndieUI: User Context provides authorized web applications access to information about a user's relevant settings and preferences, to provide the best possible user experience to all users. General web pages developed using best practices may never need access to restricted user settings, but complex web applications can utilize this information to enhance the performance and user interface.

One of the core principles behind these specifications is that that it operates on a backwards-compatible, opt-in basis. In other words, the web application author has to first be aware of these events, then explicitly declare each event receiver and register an event listener, or user agents behave as normal and do not initiate these events. If a web application does not respond to the event, the user agent may attempt fallback behavior or communicate to the user that the input has not been recognized.

For further background information on IndieUI: Events and IndieUI: User Context see the IndieUI Overview.

Use Cases and Scenarios

Manipulate a map

A person is using a map to find the location and layout of a local park in a web-based mapping application so they can print it out, using their touch-screen laptop. They know the general location, and see the green area on the lower-left-hand corner of the map on the screen. They touch that part of the screen, and use a zooming gesture to center and zoom in on that section of the screen, then fine-tune the centering using the arrow keys on their keyboard and zoom in further using the context menu on their laptop's trackpad. Finally, they use a rotation gesture on the touchscreen to re-orient the map around the point of interest. Once they have the view they want, they use the browser's control menu to print the map.

Execute a popup

A user whose point of regard (focus) is on a UI object that support popups performs an action that causes the web application to render the popup. A popup could be a popup dialog box or a popup menu. The user would like to be made aware that either of these popup options are available and be able to cause the popup to render using a variety of device input interaction methods such as a keyboard command, a gesture, a voice command, or a right mouse click.

WAI-ARIA provides a property, aria-haspopup, that indicates the UI Widget supports a popup.

Open or collapse a tree branch, menu, expandable grid cell, or expandable section

A user whose point of regard (focus) is on a UI object that indicates the UI object is expandable / collapsible to reveal / hide subordinate content would like to perform an action to cause the web application to reveal / hide the content. Common UI objects that support this function are tree items in tree controls, gridcells in treegrids that expand to reveal new rows, accordion tabs which reveal / hide panels of content, or expandable and collapsible regions (e.g. portlets). The user would like to be made aware that these options are available and be able to reveal / hide the content using a variety of device input interaction methods such as a keyboard command, a gesture, a voice command, or possibly a mouse click.

WAI-ARIA provides an aria-expanded property that indicates that is expandable when it is set to false.

WAI-ARIA has a container role of dialog that this could be applied to. Essentially this would be equivalent to an escape key .

Activate a UI component

A user whose point of regard (focus) is on a UI object, that can be activated, and would like to perform an action to activate it. Example UI objects that support activation are push buttons, radio buttons, checkboxes, and menu items. The action could be in the form of a tap, a gesture, a voice command, a mouse click, a keyboard key, or a command from an alternative input device.

This has been proposed in the past and the legacy "click" was used instead - DOMActivate.

Move the focus point within a UI component down to the next / visual right / visual down, or previous / visual left / visual up item within a UI component

A user whose focus is on a UI object that supports next and previous navigation within the UI component would like to control the UI to move its current active item (usually rendered visibly as its point of regard) to the next or previous item within its internal navigation sequence. This might be the next or previous item within a listbox, tree widget, menu, menubar, or grid, treegrid, select, or any other type of UI Component supporting this function. Visually the next item is usually right or down, and the previous item is usually left or above. The action could be in the form of a gesture, a voice command, a right mouse click, a keyboard key, or an alternative input device. Some UI components may choose to force an item selection in response to the action.

Direct a media player to start, stop, or pause playing

A user whose point of regard (focus) is within a media player would like to notify the application to start, stop, or pause the playing of the video, audio, or animation. When a notification to start, stop, or pause the player is received the rendering starts, stops, or pauses. Start starts playing form the current time in the media play sequence. Stop moves the current time in the media play back to the start of the media sequence. Pause stops playback but does not move the time pointer. Example UI components would be a video player or audio player. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Do we want to include animation such as SVG animation? This would require the user agent to respond to the notification.

Toggle rendering captions

A user whose point of regard (focus) is within a media player would like to notify the application to toggle the rendering of video or audio captions. When a notification to toggle captions is received the player the toggles the rendering of the caption track at the synchronization point within the video or audio stream play. Example UI components would be a video player or audio player. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

HTML5 has a a new media controller API that could be used to facilitate this happening.

Increase or decrease the volume

A user whose point of regard (focus) is within a media player would like to notify the application to increase or decrease the video or audio volume. When a notification to increase or decrease the volume is received the player increases or decreases the rendering volume. Example UI components would be a video player or audio player. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Zoom in or out

A user whose point of regard (focus) is within a zoomable object would like to notify the application to zoom in on the object. When a notification to zoom in a particular factor is received, the object zooms in by that factor and optionally provides more detail. Example UI components would be an SVG rendering of a CAD drawing or a key component of a scatter plot. The notification could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Pan right, left, up, or down

A user whose point of regard (focus) is within a media player would like to direct the ui object to pan up, down, left, or right so that more information can be revealed to the user in the direction of the pan. Example UI components would be a chart, subway map, CAD drawing, etc. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Do we want to include animation such as SVG animation? This would require the user agent to respond to the notification.

Move point of regard to the beginning or end of its navigation sequence

A user whose point of regard is rendered within a focused UI Object that manages its own navigation and would like to direct the ui object to move the point of regard to the beginning or end of the navigation sequence similar to a "Home" or "End" button. Example UI components would be a listbox, video player, audio player, tree widget, contenteditable area, tree widget, gridd, treegrid, or tablist. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Grab, move, and release grabbable UI object

A user whose point of regard is non a UI object would like to grab the object for the purposes of moving it such as in a drag operation. After moving the point of regard, they drop the currently grabbed object on the object with focus at the current point of regard location. Example UI components to grab and move would be a light box, a lisbox item, a tree item, or a drawing object. Example UI components on which an item could be dropped would be a light box empty box or a line indicating a location between light box items, a lisbox item to drop the item before or after the current listbox item, a tree item to add a new item in a subtree, or a region of the web application or a drawing object. The action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Continuous or discontinuous multi-slection within a UI object

A user whose point of regard is on a UI object would like to select multiple continuous or discontinuous items within a supporting UI control. Once initiated it would tell the UI component to start a run of either continuous or discontinuous item selections with in the UI control. For continuous selection, as the user navigates the items within the UI Object container each item navigated to is automatically selected until the multi-selection process terminates. For discontinuous selection, a separate command would be given to actually select individual items within the UI object but navigation among items in the UI object would not cause an actual selection to occur. When selection is complete, the user directs the UI object either to save the currently selected items and exit the selection process, or to cancel the selection process and clear the selection. Examples are options in a listbox, gridcells withing a gridd, or treeitems within a tree. This action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

WAI-ARIA has an aria-selected state that can be used to reflect the selected state of the item within a UI object.

Increase or Decrease Size of UI object by a small or large increment

A user whose point of regard is on a UI object would like to ask it to increase or decrease its size by a small or large increment. This is very common in drawing objects such as drawing objects in a flow diagram or presentation tool where the user is attempting to create a visual UI. For people with mobility impairments this is very hard to do with a pointing device and alternate forms of input are necessary. This action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

We should provide an ARIA property for ARIA 2.0 that conveys that an object is resizeable.

Move a UI object

A user whose point of regard is on a UI object would like to be able to move the object in different directions by both small and large ingrements. This is very common in drawing objects such as drawing objects in a flow diagram or presentation tool where the user is attempting to create a visual UI. For people with mobility impairments this is very hard to do with a pointing device and alternate forms of input are necessary. This action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Reveal or hide additional text without selection

User indicates that further information about an object is desired and should be shown, or once seen, no longer needed and should be hidden. This further information may be a hint similar to Hover on a mouse based system. Content may be timed or something that completes display. This action could be in the form of a gesture, a voice command, a keyboard key combination, or an alternative input device.

Change nearness indication without selection

User safely tests whether an object is active and can be selected. This further information may be a change in visual appearance, but not an actual selection or activation. (Similar to MouseOver on a mouse based system)

Cause a non-selection active state indicator to disable

The result is an a dormant state indication. (Similar to Mouse Exit on a mouse based system)

Cause a suspend/resume of live updates to the page. Can very from live regions, live blogging, twitter stream, live download.

Discussed at November 1, 2012 TPAC Face to Face?

Events Requirements

Requirements in this section are expected to be met by IndieUI: Events.

API

Provide an API layer to define user intended events that is agnostic of the specific input methodology and independent of a user's particular platform, hardware, locale, and preferences.

Addresses scenario(s):

Met by: Goals

Input Device Independence

Allow the API to support user commands without requiring specific physical events.

Addresses scenario(s):

Met by: Goals

Interaction Independence

Do not require specific physical user interactions (keyboard combinations, gestures, speech, etc.) to trigger particular IndieUI events.

Addresses scenario(s):

Met by: Scope

Backwards Compatibility

Structure the events such that they are only triggered if the application registers an interest in them, to optimize performance and allow backwards compatibility.

Addresses scenario(s):

Met by: Backwards Compatibility

Events Handled

Provide a way for applications to communicate that a given event request was or was not handled so the host OS or UA can attempt fallback behaviour.

Addresses scenario(s):

Met by: Backwards Compatibility

Non-Interference

Do not block standard events when listening for IndieUI events.

ISSUE-15 may impact this.

Addresses scenario(s):

Met by: Backwards Compatibility

Reset

Provide a way to "reset" ui-actions on descendant node.

ISSUE-15 may impact this.

Addresses scenario(s):

Met by: Backwards Compatibility

Event Delegation

Allow event delegation without affecting performance and scoping of events.

ISSUE-16 may impact this.

There may be additional requirements related to Section 2 UI Actions after we clarify implications of this structure.

Addresses scenario(s):

Met by: UI Actions

Event Order

There will be a requirement for how IndieUI events fit in with the order of other events.

This needs rewording.

ISSUE-15 may impact this.

Addresses scenario(s):

Met by: UI Request Events

Physical Event Association

Might need a requirement to be able to associate an IndieUI event with other related physical events

This needs rewording.

ISSUE-15 may impact this.

Addresses scenario(s):

Met by: UI Request Events

Extend UI Events

IndieUI Events must extend UIEvents unless the requirements are met directly in UI Events.

Addresses scenario(s):

Met by: UIRequestEvent

User Input Functions

IndieUI must support the following functions unless supported by other technologies:

Addresses scenario(s): , , ,

Met by: UIRequestEvent

Keyboard and Mouse compatibility

The properties of IndieUI request events must be a superset of the events from at least both keyboard and mouse events in the UI Events specification.

Addresses scenario(s):

Met by: UIRequestEvent

Linear Navigation

Support linear navigation for first, previous, next, and last.

Addresses scenario(s): , ?

Met by: UIFocusRequestEvent

Directional Navigation

Support directional navigation for:

Addresses scenario(s):

Met by: UIFocusRequestEvent

Non-Linear Navigation

Provide a mechanism for users to move focus non-linearly to other sections of the document such as toolbar, palette, and windows.

Action-57: also help (main covered by landmark)

Addresses scenario(s):

Met by: UIFocusRequestEvent

Landmark Navigation

Provide a way to navigate amongst landmark regions.

This may be at risk in 1.0 and could be pushed to future version. Might be a11y specific.

Addresses scenario(s):

Met by: UIFocusRequestEvent

Return to Previous Point of Regard

Provide a way for users to return to their previous point of regard, like emacs and vid and IDEs support.

Need to remove the tool-specific examples.

This does not have consensus yet. Need to determine if it is just keyboard or others as well. Could be pushed to future version. Seems to have general use cases.

Addresses scenario(s):

Met by: UIFocusRequestEvent

Manipulate Objects

Provide a mechanism to perform the following manipulations on objects or the screen:

Addresses scenario(s): , ,

Met by: UIManipulationRequestEvent

Scroll

Provide a mechanism for custom scroll views to scroll the view in the following manners:

in the following directions:

Addresses scenario(s):

Met by: UIScrollRequestEvent

Range Controls

Provide a mechanism to adjust numeric values of custom range controls by small and large increments, or to minimum and maximum values.

Addresses scenario(s):

Met by:

Feature Detection

Provide a mechanism for content authors to determine if the user agent has support for specific events.

Addresses scenario(s):

Met by: UIValueChangeRequestEvent

Context Menus

Provide a mechanism to access context menus and perhaps other secondary actions.

Addresses scenario(s):

See ISSUE-3. This might be a future requirement.

Media Controls

Provide a mechanism for standard media controls including:

See ACTION-16, ACTION-19, and ACTION-20. Some of these might be future requirements.

Addresses scenario(s): ,

Met by:

Suspend and Resume

Provide a mechanism to suspend or resume an activity

See ACTION-17. This might be a future requirement.

Addresses scenario(s):

Met by:

Selection

Provide a mechanism to select one or more objects (contiguously or discontiguously) for the purpose of performing an action.

See ACTION-25

Contiguous and discontiguous selection might be separate requirements.

Addresses scenario(s):

Met by:

No Implied Click

Provide a mechanism to activate an object without implying a click event.

See ACTION-53. Scenario is slide to unlock screen on FirefoxOS. Need to coordinate with Webapps.

Addresses scenario(s):

Met by:

Point of Regard

Provide an event that reacts to gain or loss of point of regard.

See ACTION-58. Still need a better name than Point of Regard.

Addresses scenario(s):

Met by:

Text Editing

Provide a mechanism to support text editing.

See ISSUE-9. This is probably a future requirement.

need to spell out specific events required

Addresses scenario(s):

Met by:

Resize Object

Provide a mechanism to resize objects in graphical editing applications with ability to constrain proportions.

See ACTION-26. This is probably a future requirement.

Addresses scenario(s):

Met by:

Set Rotation Centerpoint

Provide a mechanism to set the centerpoint of a rotation request.

See ACTION-26. This is probably a future requirement.

Addresses scenario(s):

Met by:

Table Sort

Provide a mechanism to request grid sort by columns

See ACTION-31. This is probably a future requirement.

Addresses scenario(s):

Met by:

User Context Requirements

Requirements in this section are expected to be met by IndieUI: User Context.

This version of the document does not yet elaborate requirements for IndieUI: User Context.

Other Requirements

Requirements in this section address goals fo the IndieUI Working Group but are expected to be met by current and future work from other efforts. They are included here to help provide a complete picture of the requirements space addressed by the IndieUI Working Group.

Placeholder for acknowledgements