Chrome <audio> Element Styling

-webkit-media-controls Styles for Webkit Chromium. Pretty cool to see all how they're doing it natively, as well as manipulating the audio player style as you see fit.

by J. Albert Bowden

HTML

<!DOCTYPE html>
<html lang="en-US">
    <head>
        <meta charset="utf-8" />
        <title>::-webkit-media-controls Chromium CSS</title>
        <meta name="viewport" content="width=device-width; initial-scale=1.0;" />
        <link href="http://dev.bowdenweb.com/assets/css/sandbox.css" rel="stylesheet" media="screen, projection" />
        <body>
            <div class="content">
                <h1>::-webkit-media-controls Chromium CSS</h1>
                <h2>Regular Audio Element with controls Attribute</h2>
                <audio controls="controls"><source src="http://dev.bowdenweb.com/a/m/a/clipping_link-finds-a-secret-13908.mp3" /></audio>
<pre style="margin-top:1.5em;"><code>
&#60;audio controls="controls"&#62;
  &#60;source src="http://dev.bowdenweb.com/a/m/a/clipping_link-finds-a-secret-13908.mp3" /&#62;
&#60;/audio&#62;
</code></pre>
            </div>
        </body>
    </html>

CSS

.content h1{font-size:20px; margin-bottom:1em; text-align:center}
.content h2{font-size:17px; margin:1em auto 2em auto; text-align:center}
/** http://codesearch.google.com/codesearch/p#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/css/mediaControlsChromium.css **/
/*
* Copyright (C) 2009 Apple Inc.  All rights reserved.
* Copyright (C) 2009 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
*    notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
*    notice, this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/* Chromium default media controls */
audio{width: 300px; height: 32px}
audio::-webkit-media-controls-panel{
    -webkit-user-select: none; position: absolute; overflow: visible; bottom: 0; width: 100%;
    height: 32px; z-index: 0; background-color: rgba(0, 0, 0, 0.6)}
audio::-webkit-media-controls-mute-button{
    -webkit-appearance: media-mute-button; position: absolute;
    top: auto; bottom: 0; right: 0; left: auto; width:...