1. Computing & Technology

Discuss in my forum

play-during

By , About.com Guide

play-during Description:

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

play-during in CSS Versions:

play-during Syntax:

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

  • <uri>
    A URL pointing to the sound file to play.
  • mix
    Mix any inherited play-during sounds with this new sound.
  • repeat
    Repeat the sound if it's too short to fill the entire duration of the element.
  • auto
    Continue to play the sound of the parent element, without restarting.
  • none
    Silence, including any parent element sounds.
  • inherit
    The element should have the same play-during setting as the parent.

play-during Initial Value:

auto

play-during Applies To:

All elements.

play-during Inheritance:

This property is not inherited.

play-during Browser Support:

Not supported by visual browsers.

play-during media type:

  • Aural

play-during Examples:

Standard play-during property

<p style="play-during : url("sound.wav") repeat;">
 While this paragraph is read, the sound.wav file will repeat in the background.
 </p>

play-during Special Notes:

  • The precise method of rendering the sound is up to the user-agent.

More play-during Information

Return to the Style Library

©2012 About.com. All rights reserved.

A part of The New York Times Company.