Changeset 183156 in webkit
- Timestamp:
- Apr 22, 2015 7:11:34 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183155 r183156 1 2015-04-22 Roger Fong <roger_fong@apple.com> 2 3 Inline media control icons scale down when video is too small. 4 https://bugs.webkit.org/show_bug.cgi?id=144073. 5 <rdar://problem/20659451> 6 7 Reviewed by Darin Adler. 8 9 Just make sure the buttons use min-width. 10 * Modules/mediacontrols/mediaControlsApple.css: 11 (audio::-webkit-media-controls-rewind-button): 12 (audio::-webkit-media-controls-play-button): 13 (audio::-webkit-media-controls-panel .mute-box): 14 (video::-webkit-media-controls-volume-max-button): 15 (audio::-webkit-media-controls-wireless-playback-picker-button): 16 (audio::-webkit-media-controls-toggle-closed-captions-button): 17 (audio::-webkit-media-controls-fullscreen-button): 18 1 19 2015-04-22 Jer Noble <jer.noble@apple.com> 2 20 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css
r182988 r183156 165 165 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 17" fill="rgba(255,255,255,0.45)"><path d="m 7.9131,2 0,-1.548 -2.586,2.155 0,-2.171 -2.582,2.208 2.582,2.175 0,-2.139 2.586,2.155 0,-1.276 c 3.138,0.129 5.491,2.681 5.543,5.838 l -1.031,0 0.016,0.215 1.015,0 c -0.06,3.19 -2.629,5.765 -5.819,5.833 l 0,-1.018 -0.214,0 0,1.021 c -3.21,-0.047 -5.801,-2.631 -5.862,-5.836 l 1.045,0 -0.016,-0.215 -1.045,0 c -0.052,-0.288 -0.318,-0.654 -0.766,-0.654 -0.538,0 -0.755,0.484 -0.755,0.75 0,4.146 3.331,7.506 7.476,7.506 4.146,0 7.506,-3.36 7.506,-7.506 0,-4.059 -3.066,-7.357 -7.093,-7.493"/><path d="m 5.1729,11.0518 c -0.38,0 -0.668,-0.129 -0.945,-0.366 -0.083,-0.071 -0.186,-0.134 -0.338,-0.134 -0.277,0 -0.511,0.238 -0.511,0.521 0,0.154 0.083,0.301 0.179,0.383 0.394,0.346 0.911,0.563 1.601,0.563 1.077,0 1.739,-0.451 1.739,-1.608 l 0,-0.013 c 0,-0.911 -0.641,-1.265 -1.296,-1.376 l 0.945,-0.919 c 0.193,-0.19 0.317,-0.337 0.317,-0.604 0,-0.294 -0.228,-0.477 -0.538,-0.477 l -2.354,0 c -0.248,0 -0.455,0.21 -0.455,0.464 0,0.253 0.207,0.463 0.455,0.463 l 1.485,0 -0.939,0.961 c -0.166,0.169 -0.228,0.295 -0.228,0.444 0,0.25 0.207,0.463 0.455,0.463 l 0.166,0 c 0.594,0 0.945,0.222 0.945,0.624 l 0,0.012 c 0,0.367 -0.282,0.599 -0.453,0.599"/><path d="m 10.354,9.5342 c 0,0.876 -0.379,1.525 -0.979,1.525 -0.599,0 -0.992,-0.655 -0.992,-1.539 l 0,-0.012 c 0,-0.884 0.388,-1.527 0.979,-1.527 0.592,0 0.992,0.663 0.992,1.539 l 0,0.014 z m -0.979,-2.512 c -1.197,0 -2.008,1.097 -2.008,2.498 l 0,0.014 c 0,1.401 0.792,2.484 1.995,2.484 1.205,0 2.01,-1.097 2.01,-2.498 l 0,-0.012 c 0,-1.402 -0.805,-2.486 -1.997,-2.486"/></svg>'); 166 166 width: 16px; 167 min-width: 16px; 167 168 height: 18px; 168 169 margin-bottom: 1px; … … 175 176 margin-left: 16px; 176 177 width: 12px; 178 min-width: 12px; 177 179 } 178 180 … … 186 188 audio::-webkit-media-controls-panel .mute-box { 187 189 width: 14px; 190 min-width: 14px; 188 191 height: 25px; 189 192 margin-right: 16px; … … 199 202 video::-webkit-media-controls-volume-max-button { 200 203 width: 14px; 204 min-width: 14px; 201 205 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15" stroke="rgba(255,255,255,0.45)" fill="none" stroke-width="1.25" stroke-linecap="round"><defs><clipPath id="cut-hole"><rect x="3" y="0" width="3.5" height="15"/></clipPath></defs><path stroke="none" fill="rgba(255,255,255,0.45)" shape-rendering="crispEdges" d="M 0,10 0,6 3,6 3,10 z"/><path stroke="none" fill="rgba(255,255,255,0.45)" clip-path="url(#cut-hole)" shape-rendering="crispEdges" d="M 3.5,6 6.5,3 6.5,13 3.5,10 z"/><path d="M 9,5.5 C 10.75,7 10.75,9 9,10.5"/><path d="M 10,3.5 C 13,4.5 13,11.5 10,12.5" /><path d="M 11,1.5 C 15.67,3.5 15.67,12.5 11,14.5"/></svg>'); 202 206 } … … 302 306 margin-right: 16px; 303 307 width: 16px; 308 min-width: 16px; 304 309 } 305 310 … … 312 317 audio::-webkit-media-controls-toggle-closed-captions-button { 313 318 width: 16px; 319 min-width: 16px; 314 320 margin-right: 16px; 315 321 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="rgba(255,255,255,0.45)" fill="none"><defs> <clipPath id="cut-hole"><rect x="0" y="1" width="16" height="10"/><rect x="0" y="11" width="9" height="1"/><rect x="11" y="11" width="5" height="1"/></clipPath></defs> <rect x="0.5" y="1.5" rx="1" ry="1" width="15" height="10" clip-path="url(#cut-hole)"/><path d="M 2,6.5 h 4"/><path d="M 7,6.5 h 7"/><path d="M 3,8.5 h 2"/><path d="M 6,8.5 h 3"/><path d="M 10,8.5 h 3"/><path d="M 8.5,11.5 L 8.5,13.75 L 11,11"/></svg>'); … … 412 418 margin-right: 7px; 413 419 width: 14px; 420 min-width: 14px; 414 421 } 415 422
Note: See TracChangeset
for help on using the changeset viewer.