CSS play-during
The CSS play-during
property is used in audio devices to play a sound in the background while element's content is being played/spoken.
Also see the cue-after
, cue-before
, and cue
properties.
Syntax
Possible Values
none
auto
- <URI> (must point to an audio resource)
mix
- the sound (as specified by the URI) is played while the parent's sound continues to play. If mix is not specified, the parent's sound will cease when this element's sound starts.repeat
- the sound will repeat if it is too short for the element's content.
In addition, all CSS properties also accept the following CSS-wide keyword values as the sole component of their property value:
initial
- Represents the value specified as the property's initial value.
inherit
- Represents the computed value of the property on the element's parent.
unset
- This value acts as either
inherit
orinitial
, depending on whether the property is inherited or not. In other words, it sets all properties to their parent value if they are inheritable or to their initial value if not inheritable.
General Information
- Initial Value
auto
- Applies To
- All elements
- Inherited?
- No
- Media
- Aural
Example Code
Official Specifications
- CSS2.1 (W3C Recommendation 07 June 2011)