Name

play-during — NN n/a IE n/a CSS 2

Synopsis

Inherited: No

For aural style sheets, sets the sound mixing properties of a background sound with a text-to-speech rendering of the element’s content.

CSS Syntax

play-during: uri [mix | repeat] | auto | none

Value

The uri value is a link to the sound file to be used as background sound (if desired). Optionally, you can specify that the background sound of the parent element’s play-during attribute is started and mixed with the current element’s background sound. If the background sound’s length is shorter than it takes for the element’s text to be spoken, the repeat constant tells the browser to repeat the sound until the spoken text has finished. A value of auto means that the parent element’s sound continues to play without interruption. And a value of none means that no background sound (from the current or parent element) is heard for this element.

Initial Value

auto

Applies To

All elements.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.