play-during
Definition
The play-during property specifies a background sound to be played while an element's content is being spoken.
Example
blockquote {play-during: url('music.wav')}
Characteristics
Possible values
- uri
A URL to a sound file that plays in the background while the element's content is being rendered aurally by a user agent. The URL may be followed by one of the following keywords:
mix- The sound inherited from the parent element's
play-during property continues to play, and the sound designated by the URL is mixed with it. If mix is not specified, the element's background sound replaces that of the parent. repeat- Causes the sound to repeat if it is too short to fill the duration of the element. Otherwise, the sound plays once and then stops. If the sound is too long for the element, it is clipped at the point where the user agent stops aurally rendering the element.
auto- The sound of the parent element continues to play rather than restarting (which would have been the case if this property had been inherited).
none- This keyword means that there is silence. The sound of the parent element (if any) is silenced during the current element, but resumes after the current element.
inherit- Use the same computed value as the parent element for this property.
Default value
auto
Applies to
All elements
Inherited
No