Rule

Looping video control

Looping autoplay video must be pausable.

Rule
video-loop-motion
WCAG 2.2
2.2.2 Pause, Stop, Hide (opens in a new tab) (Level A)
Severity
Serious

What it checks

Looks at every <video> with autoplay and loop and no controls. Such a video starts by itself and never ends, so it runs past the five seconds at which the criterion asks for a way to pause, stop or hide it.

It passes when a visible, enabled button names the video, or an element holding it, in aria-controls. It also passes when the video has loaded and is paused, or when it is under 64 pixels on both sides, the scale of an icon. A video with controls has its own pause button and is not checked.

When a person decides

Without a button wired up by aria-controls, the video is sent for review rather than failed. A pause control can sit anywhere on the page, so a person checks that one exists and reaches this video.

Example

Sent to review

<video src="harbour.mp4" autoplay loop muted width="640" height="360"></video>

Passes

<video id="hero" src="harbour.mp4" autoplay loop muted width="640" height="360"></video>
<button type="button" aria-controls="hero">Pause background video</button>

The engine is tested against both examples.

How to fix it

Add controls, or a visible pause button whose aria-controls names the video. Not starting the video under prefers-reduced-motion: reduce helps too.

Check your own pages

This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.