ACT Rules for WCAG 2.0

ACT-R3: Audio and video auto-play

Important Information for reviewing ACT Rules

Important: The ACT Rules on this page are a demonstration of how they might be published by the W3C. The goal of this page is to add concrete examples for the Accessibility Conformance Testing Rules Format (DRAFT). Neither the ACT Rules, or the way they are presented here has been approved by the Accessibility Guidelines Working Group. If you have feedback, please comment by filing GitHub issues in the WCAG ACT repository, if this is not feasible, by email to public-wcag-act-comments@w3.org.

Accessibility Requirements

This conformance rule relates to:

Description

This test checks that any sound that plays automatically when a web page is loaded stops after 3 seconds or the web page provides a user control to turn off the sound.

Background

Assumptions

Test procedure

Selector

Select all elements that match the following CSS Selector:

audio[src], audio > source[src],
video[src], video > source[src]

Step 1

Check if the audio or video is paused. Check paused property.

If true, return step1-pass

Else continue with step 2

Step 2

Check if the sound is muted. Check muted property.

If true, return step2-pass

Else continue with step 3

Step 3

Check that the sound is no longer than 3 seconds.

Check duration property is no longer than 3 seconds.

If true, continue with step 4

Else continue with Step 5

Step 4

Check if the sound has a loop. Check loop property.

If true, continue with Step 5

Else, return step4-pass

Step 5

Check if the page is playing audio.

User Input Question:

Property Value
highlight The selected audio / video element
question Is there audio playing in the media player?
help There should not be audio playing automatically on the web page loads.
user profile Requires hearing

If yes, continue with Step 6.

Else, return step5-pass

Step 6

Check if a mechanism to control the sound is provided as one of the first five links or buttons on the web page.

User Input Question:

Property Value
question Does the web page provide a mechanism to control the sound as one of the first five links or buttons?
help A mechanism to pause or stop the video or audio, or control the volume or mute the audio must be available on the web page. The mechanism must be located as one of the first five links or buttons of the web page. This way people (with screen readers) can turn off the sound before reading the web page. To inspect this, use the tab key to navigate through the web page.
user_profile Requires hearing

If yes, return step6-pass

Else, return step6-fail

Outcomes

The resulting assertion is as follows,

Property Value
type Assertion
test act:ACT-R3
subject the selected element
mode earl:semi-automatic
result « One TestResult from below »

step1-pass

Property Value
type TestResult
outcome Passed
description The video / audio is paused

step2-pass

Property Value
type TestResult
outcome Passed
description The video / audio is muted

step4-pass

Property Value
type TestResult
outcome Passed
description The video / audio is shorter than 3 seconds

step5-pass

Property Value
type TestResult
outcome Passed
description No sound is coming from the audio / video element

step6-pass

Property Value
type TestResult
outcome Passed
description The sound in the audio / video can easily be stopped.

step6-fail

Property Value
type TestResult
outcome Failed
description There is no mechanism to stop the auto-playing sound of the audio / video.

Changelog

This is the first version of this rule.

Validation Tests

To validate the implementation of this rule, all test cases for ACT-R3 must be passed.