2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 /* Chromium default media controls */
28 /* WARNING: This css file can only style <audio> and <video> elements */
35 audio::-webkit-media-controls,
36 video::-webkit-media-controls {
42 flex-direction: column;
43 justify-content: flex-end;
47 audio::-webkit-media-controls-enclosure, video::-webkit-media-controls-enclosure {
55 box-sizing: border-box;
58 video::-webkit-media-controls-enclosure {
59 padding: 0px 5px 5px 5px;
64 audio::-webkit-media-controls-panel, video::-webkit-media-controls-panel {
68 /* We use flex-start here to ensure that the play button is visible even
69 * if we are too small to show all controls.
71 justify-content: flex-start;
72 -webkit-user-select: none;
80 background-color: rgba(20, 20, 20, 0.8);
84 video:-webkit-full-page-media {
93 audio:-webkit-full-page-media, video:-webkit-full-page-media {
98 audio:-webkit-full-page-media::-webkit-media-controls-panel,
99 video:-webkit-full-page-media::-webkit-media-controls-panel {
103 audio::-webkit-media-controls-mute-button, video::-webkit-media-controls-mute-button {
104 -webkit-appearance: media-mute-button;
108 box-sizing: border-box;
114 background-color: initial;
118 audio::-webkit-media-controls-overlay-enclosure {
122 video::-webkit-media-controls-overlay-enclosure {
125 flex-direction: column;
126 justify-content: flex-end;
132 box-sizing: border-box;
136 video::-webkit-media-controls-overlay-play-button {
137 -webkit-appearance: media-overlay-play-button;
145 box-sizing: border-box;
146 background-color: transparent;
152 audio::-webkit-media-controls-play-button, video::-webkit-media-controls-play-button {
153 -webkit-appearance: media-play-button;
157 box-sizing: border-box;
164 background-color: initial;
168 audio::-webkit-media-controls-timeline-container, video::-webkit-media-controls-timeline-container {
169 -webkit-appearance: media-controls-background;
173 justify-content: flex-end;
175 -webkit-user-select: none;
180 audio::-webkit-media-controls-current-time-display, video::-webkit-media-controls-current-time-display,
181 audio::-webkit-media-controls-time-remaining-display, video::-webkit-media-controls-time-remaining-display {
182 -webkit-appearance: media-current-time-display;
183 -webkit-user-select: none;
194 font-family: Arial, Helvetica, sans-serif;
200 letter-spacing: normal;
201 word-spacing: normal;
202 text-transform: none;
205 text-decoration: none;
208 audio::-webkit-media-controls-timeline, video::-webkit-media-controls-timeline {
209 -webkit-appearance: media-slider;
215 background-color: transparent;
221 audio::-webkit-media-controls-volume-slider, video::-webkit-media-controls-volume-slider {
222 -webkit-appearance: media-volume-slider;
224 /* The 1.9 value was empirically chosen to match old-flexbox behaviour
225 * and be aesthetically pleasing.
232 background-color: transparent;
238 /* FIXME these shouldn't use special pseudoShadowIds, but nicer rules.
239 https://code.google.com/p/chromium/issues/detail?id=112508
240 https://bugs.webkit.org/show_bug.cgi?id=62218
242 input[type="range"]::-webkit-media-slider-container {
245 flex-direction: row; /* This property is updated by C++ code. */
246 box-sizing: border-box;
249 border: 1px solid rgba(230, 230, 230, 0.35);
251 background-color: transparent; /* Background drawing is managed by C++ code to draw ranges. */
254 /* The negative right margin causes the track to overflow its container. */
255 input[type="range"]::-webkit-media-slider-container > div {
259 input[type="range"]::-webkit-media-slider-thumb {
264 audio::-webkit-media-controls-fullscreen-button, video::-webkit-media-controls-fullscreen-button {
265 -webkit-appearance: media-enter-fullscreen-button;
269 box-sizing: border-box;
276 background-color: initial;
280 audio::-webkit-media-controls-toggle-closed-captions-button {
284 video::-webkit-media-controls-toggle-closed-captions-button {
285 -webkit-appearance: media-toggle-closed-captions-button;
289 box-sizing: border-box;
296 background-color: initial;
300 audio::-webkit-media-controls-fullscreen-volume-slider, video::-webkit-media-controls-fullscreen-volume-slider {
304 audio::-webkit-media-controls-fullscreen-volume-min-button, video::-webkit-media-controls-fullscreen-volume-min-button {
308 audio::-webkit-media-controls-fullscreen-volume-max-button, video::-webkit-media-controls-fullscreen-volume-max-button {
312 video::-webkit-media-text-track-container {
318 font: 22px sans-serif;
320 color: rgba(255, 255, 255, 1);
322 letter-spacing: normal;
323 word-spacing: normal;
324 text-transform: none;
326 text-decoration: none;
327 pointer-events: none;
328 -webkit-user-select: none;
329 word-break: break-word;
337 background-color: rgba(0, 0, 0, 0.8);
341 video::-webkit-media-text-track-region {
344 writing-mode: horizontal-tb;
345 background: rgba(0, 0, 0, 0.8);
346 color: rgba(255, 255, 255, 1);
347 word-wrap: break-word;
348 overflow-wrap: break-word;
352 video::-webkit-media-text-track-region-container {
357 flex-direction: column;
360 video::-webkit-media-text-track-region-container.scrolling {
361 transition: top 433ms linear;
365 video::-webkit-media-text-track-display {
368 white-space: pre-wrap;
369 -webkit-box-sizing: border-box;
373 video::cue(:future) {
377 video::-webkit-media-text-track-container b {
381 video::-webkit-media-text-track-container u {
382 text-decoration: underline;
385 video::-webkit-media-text-track-container i {