CSS play-during Property

Description

The play-during property defines a sound to be played as background while the element is read.

The play-during property has been deprecated or is no longer in any CSS working groups.

Initial value
auto
Applies to
All elements
Inherited
No
Computed value
Absolute URI, rest as specified
Animatable
No
JavaScript syntax
object.style.playDuring

Syntax

play-during: <uri> [ mix || repeat ]? | auto | none | inherit

Values

  • none
  • auto
  • <uri>
  • mix
  • repeat
  • inherit

Example

p.credits {play-during: url("music.wav") mix;}

Browser Support

The following table will show you the current browser support for the CSS play-during property.

Desktop
Edge Chrome Firefox Opera Safari
?????
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
??????