CSS Reference

"play-during" - css property (v. css 2)

  • To specify a sound to be played while speaking the content of an element
  • Initial value: auto
  • The property is not inherited
  • HTML usage: all elements
  • Browsers that support the play-during - property :
    Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Typical usage:
BLOCKQUOTE.sad { play-during: url("violins.aiff") }
BLOCKQUOTE Q   { play-during: url("harp.wav") mix }
SPAN.quiet     { play-during: none }

Possible play-during values:

Values Comments CSS
none The sound of the parent element (if any) is silent during the current element and continues after the current element. 2
auto The sound of the parent element continues to play (it is not restarted, which would have been the case if this property had been inherited). 2
mix The sound inherited from the parent element's 'play-during' property continues to play and the sound designated by the URI is mixed with it. 2
repeat The sound will repeat if it is too short to fill the entire duration of the element. Otherwise, the sound plays once and then stops. 2
[uri] The sound designated by this URI is played as a background while the element's content is spoken. 2
inherit Will inherit the value from parent specification. 2
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.