Changeset 180893 in webkit
- Timestamp:
- Mar 2, 2015 1:07:33 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r180890 r180893 1 2015-02-28 Roger Fong <roger_fong@apple.com> 2 3 Skip media control tests for now while new look is being finalized. 4 https://bugs.webkit.org/show_bug.cgi?id=142138. 5 6 Reviewed by Dean Jackson. 7 8 * platform/mac/TestExpectations: 9 1 10 2015-03-02 Brent Fulgham <bfulgham@apple.com> 2 11 -
trunk/LayoutTests/platform/mac/TestExpectations
r180888 r180893 1271 1271 1272 1272 webkit.org/b/141534 [ Yosemite ] media/video-load-networkState.html [ Pass Crash ] 1273 1274 # Skip media control tests until new controls are finalized 1275 webkit.org/b/142142 media/video-no-audio.html [ Skip ] 1276 webkit.org/b/142142 media/controls-strict.html [ Skip ] 1277 webkit.org/b/142142 media/video-volume-slider.html [ Skip ] 1278 webkit.org/b/142142 media/controls-styling.html [ Skip ] 1279 webkit.org/b/142142 media/video-display-toggle.html [ Skip ] 1280 webkit.org/b/142142 media/audio-controls-rendering.html [ Skip ] 1281 webkit.org/b/142142 media/video-zoom-controls.html [ Skip ] 1282 webkit.org/b/142142 fast/hidpi/video-controls-in-hidpi.html [ Skip ] 1283 webkit.org/b/142142 media/video-controls-rendering.html [ Skip ] 1284 webkit.org/b/142142 accessibility/media-element.html [ Skip ] 1285 webkit.org/b/142142 media/controls-without-preload.html [ Skip ] 1286 webkit.org/b/142142 media/media-controls-clone.html [ Skip ] 1287 webkit.org/b/142142 fast/layers/video-layer.html [ Skip ] 1288 webkit.org/b/142142 media/video-empty-source.html [ Skip ] 1289 webkit.org/b/142142 media/audio-delete-while-slider-thumb-clicked.html [ Skip ] 1290 webkit.org/b/142142 media/controls-after-reload.html [ Skip ] -
trunk/Source/WebCore/ChangeLog
r180883 r180893 1 2015-03-01 Roger Fong <roger_fong@apple.com> 2 3 Update inline media element controls appearance Part 1. 4 https://bugs.webkit.org/show_bug.cgi?id=142138. 5 <rdar://problem/19997384> 6 7 Reviewed by Dean Jackson. 8 9 Update positioning, sizes, and background colors media control elements. 10 Volume and timeline sliders will be drawn in a separate patch via 2d canvases. 11 12 * Modules/mediacontrols/mediaControlsApple.css: 13 (audio::-webkit-media-controls-panel): 14 (video::-webkit-media-controls-panel): 15 (audio::-webkit-media-controls-rewind-button): 16 (audio::-webkit-media-controls-play-button): 17 (audio::-webkit-media-controls-panel .mute-box): 18 (video::-webkit-media-controls-volume-max-button): 19 (audio::-webkit-media-controls-panel .volume-box): 20 (audio::-webkit-media-controls-panel .volume-box:active): 21 (video::-webkit-media-controls-volume-slider): 22 (audio::-webkit-media-controls-toggle-closed-captions-button): 23 (audio::-webkit-media-controls-fullscreen-button): 24 (audio::-webkit-media-controls-current-time-display): 25 (audio::-webkit-media-controls-time-remaining-display): 26 (audio::-webkit-media-controls-timeline-container .hour-long-time): Deleted. 27 1 28 2015-03-02 David Kilzer <ddkilzer@apple.com> 2 29 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
r175715 r180893 78 78 -webkit-user-select: none; 79 79 -webkit-user-drag: element; 80 background-color: transparent; 81 background-image: -webkit-linear-gradient(top, 82 rgba(0, 0, 0, .92) 0, 83 rgba(0, 0, 0, .92) 1px, 84 rgba(89, 89, 89, .92) 1px, 85 rgba(89, 89, 89, .92) 2px, 86 rgba(60, 60, 60, .92) 2px, 87 rgba(35, 35, 35, .92) 12px, 88 rgba(30, 30, 30, .92) 12px, 89 rgba(30, 30, 30, .92) 13px, 90 rgba(25, 25, 25, .92) 13px, 91 rgba(17, 17, 17, .92) 100% 92 ); 80 background-color: black !important; 93 81 94 82 display: -webkit-flex; … … 104 92 video::-webkit-media-controls-panel { 105 93 cursor: none; 106 opacity: 0;107 94 } 108 95 … … 141 128 height: 18px; 142 129 margin-bottom: 1px; 143 margin-left: 6px; 144 margin-right: 4px; 130 margin-left: 8px; 145 131 } 146 132 … … 148 134 audio::-webkit-media-controls-play-button { 149 135 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><linearGradient id="gradient" x2="0" y2="100%" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(200, 200, 200)"/><stop offset="1" stop-color="rgb(208, 208, 208)"/></linearGradient><path d="M 0,0 v 16 h 6 v -16 h -6 z" fill="url(#gradient)"/><path d="M 9,0 v 16 h 6 v -16 h -6 z" fill="url(#gradient)"/></svg>'); 150 margin-left: 6px; 151 margin-right: 1px; 136 margin-left: 16px; 152 137 } 153 138 … … 159 144 video::-webkit-media-controls-panel .mute-box, 160 145 audio::-webkit-media-controls-panel .mute-box { 161 width: 22px; 162 height: 22px; 163 margin-right: 2px; 164 146 width: 16px; 147 height: 16px; 148 margin-right: 16px; 165 149 position: relative; 166 150 display: -webkit-flex; … … 174 158 video::-webkit-media-controls-volume-max-button { 175 159 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><linearGradient id="gradient" x2="0" y2="100%" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(200, 200, 200)"/><stop offset="1" stop-color="rgb(208, 208, 208)"/></linearGradient><path d="m 0,9 0,-4 3,0 3,-3 0,10 -3,-3 -3,0 z" style="fill:url(#gradient) "/><path d="m 10.449,1.087 c 1.963,1.055 3.322,3.291 3.322,5.881 0,2.642 -1.402,4.913 -3.424,5.945" style="fill:none;stroke:url(#gradient);stroke-width:1.25;stroke-linecap:round;"/><path d="m 9.13,3.134 c 1.289,0.681 2.181,2.142 2.181,3.835 0,1.743001 -0.939,3.24 -2.285,3.897" style="fill:none;stroke:url(#gradient);stroke-width:1.25;stroke-linecap:round;"/><path d="M 7.794,5.175 C 8.403001,5.491 8.827001,6.167 8.827001,6.971 8.827001,7.818 8.356,8.537001 7.688,8.826" style="fill:none;stroke:url(#gradient);stroke-width:1.25;stroke-linecap:round;"/></svg>'); 176 width: 14px;177 160 } 178 161 … … 181 164 position: absolute; 182 165 box-sizing: border-box; 183 height: 2 2px;166 height: 23px; 184 167 bottom: 0; 185 168 left: 0; 186 169 187 -webkit-transform: rotate(-90deg) ;170 -webkit-transform: rotate(-90deg) translateY(-4px) translateX(-5px); 188 171 -webkit-transform-origin: 11px 11px; 189 172 190 background-color: transparent; 191 background-image: -webkit-linear-gradient( 192 left, 193 rgba(17, 17, 17, 0.92), 194 rgba(42, 42, 42, 0.92) 195 ); 196 border: 1px solid rgba(0, 0, 0, 0.95); 197 border-radius: 12px; 173 background-color: black; 174 border-radius: 4px; 198 175 199 176 display: -webkit-flex; … … 204 181 opacity: 0; 205 182 /* make zero width (rather than display:none) for AX and FKA */ 206 width: 0; /* will become 1 14px when shown */183 width: 0; /* will become 101px when shown */ 207 184 208 185 } … … 217 194 opacity: 1; 218 195 /* resize to usable amount (rather than display:none) for AX and FKA */ 219 width: 1 14px;196 width: 101px; 220 197 } 221 198 … … 224 201 -webkit-appearance: none !important; 225 202 box-sizing: border-box !important; 226 height: 10px !important;227 width: 80px !important;203 height: 9px !important; 204 width: 64px !important; 228 205 padding: 0 !important; 229 margin-right: 6px !important; 230 231 border-radius: 5px !important; 206 margin-right: 10px !important; 207 232 208 background-color: transparent !important; 233 209 background-image: -webkit-linear-gradient( … … 280 256 width: 16px; 281 257 height: 16px; 282 margin : 0 7px;258 margin-right: 16px; 283 259 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 102 105"><linearGradient id="gradient" x2="0" y2="100%" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="rgb(216, 216, 216)"/><stop offset="0.46875" stop-color="rgb(216, 216, 216)"/><stop offset="0.46875" stop-color="rgb(208, 208, 208)"/><stop offset="0.53125" stop-color="rgb(208, 208, 208)"/><stop offset="0.53125" stop-color="rgb(200, 200, 200)"/><stop offset="1" stop-color="rgb(208, 208, 208)"/></linearGradient><path d="M98.766,43.224c0-23.163-21.775-41.94-48.637-41.94c-26.859,0-48.635,18.777-48.635,41.94c0,18.266,13.546,33.796,32.444,39.549c1.131,8.356,26.037,24.255,22.864,19.921c-4.462-6.096-5.159-13.183-5.07-17.566C77.85,84.397,98.766,65.923,98.766,43.224z" fill="url(#gradient)"/></svg>'); 284 260 outline: 0; … … 384 360 audio::-webkit-media-controls-fullscreen-button { 385 361 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" transform="rotate(90,0,0)"><linearGradient id="gradient" x2="0" y2="100%" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(200, 200, 200)"/><stop offset="1" stop-color="rgb(208, 208, 208)"/></linearGradient><path d="M 14,1 m 0,6 -2,-2 -2,2 c 0,0 -1,1 -2,0 -1,-1 0,-2 0,-2 l 2,-2 -2,-2 6,0 z" style="fill:url(#gradient) "/><path d="M 1,14 m 0,-6 2,2 2,-2 c 0,0 1,-1 2,0 1,1 0,2 0,2 l -2,2 2,2 -6,0 z" style="fill:url(#gradient) "/></svg>'); 386 margin : 0 7px;362 margin-right: 8px; 387 363 } 388 364 video::-webkit-media-controls-fullscreen-button.exit, … … 487 463 } 488 464 489 video::-webkit-media-controls-timeline-container .hour-long-time, 490 audio::-webkit-media-controls-timeline-container .hour-long-time { 491 min-width: 67px; 465 video::-webkit-media-controls-current-time-display, 466 audio::-webkit-media-controls-current-time-display { 467 margin-left: 16px; 468 margin-right: 8px; 469 } 470 471 video::-webkit-media-controls-time-remaining-display, 472 audio::-webkit-media-controls-time-remaining-display { 473 margin-left: 8px; 474 margin-right: 16px; 492 475 } 493 476 … … 654 637 position: absolute; 655 638 656 657 639 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 15"><linearGradient id="gradient" x2="0" y2="100%" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(216, 216, 216)"/><stop offset="0.4375" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(208, 208, 208)"/><stop offset="0.5" stop-color="rgb(200, 200, 200)"/><stop offset="1" stop-color="rgb(208, 208, 208)"/></linearGradient><path d="M 22,0 11,7 22,15 z" fill="url(#gradient)"/><path d="M 11,0 0,7 11,15 z" fill="url(#gradient)"/></svg>'); 658 640
Note: See TracChangeset
for help on using the changeset viewer.