Changeset 183703 in webkit


Ignore:
Timestamp:
May 1, 2015 5:47:04 PM (9 years ago)
Author:
roger_fong@apple.com
Message:

Media control volume slider should be vertical to avoid flickering issues.
https://bugs.webkit.org/show_bug.cgi?id=144496.
<rdar://problem/20451328>

Reviewed by Darin Adler.

  • Modules/mediacontrols/mediaControlsApple.css:

Resize and reposition the volume box so that it does not have to rotated via a transform.
(audio::-webkit-media-controls-panel):
(audio::-webkit-media-controls-panel .volume-box): Also set overflow: hidden so we can't interact

with the volume slider while the volume box is hidden.

(audio::-webkit-media-controls-panel .volume-box:active):
Rotate and position the volume slider via transforms. Make sure it's not transformed in the fullscreen controls.
(video::-webkit-media-controls-volume-slider):
(video:-webkit-full-screen::-webkit-media-controls-volume-slider):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r183702 r183703  
     12015-05-01  Roger Fong  <roger_fong@apple.com>
     2
     3        Media control volume slider should be vertical to avoid flickering issues.
     4        https://bugs.webkit.org/show_bug.cgi?id=144496.
     5        <rdar://problem/20451328>
     6
     7        Reviewed by Darin Adler.
     8
     9        * Modules/mediacontrols/mediaControlsApple.css:
     10        Resize and reposition the volume box so that it does not have to rotated via a transform.
     11        (audio::-webkit-media-controls-panel):
     12        (audio::-webkit-media-controls-panel .volume-box): Also set overflow: hidden so we can't interact
     13             with the volume slider while the volume box is hidden.
     14        (audio::-webkit-media-controls-panel .volume-box:active):
     15        Rotate and position the volume slider via transforms. Make sure it's not transformed in the fullscreen controls.
     16        (video::-webkit-media-controls-volume-slider):
     17        (video:-webkit-full-screen::-webkit-media-controls-volume-slider):
     18
    1192015-05-01  Brent Fulgham  <bfulgham@apple.com>
    220
  • trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css

    r183693 r183703  
    214214    position: absolute;
    215215    box-sizing: border-box;
    216     height: 63px;
    217     bottom: 0;
    218     left: 0;
     216    width: 63px;
     217    bottom: 5px;
     218    left: -25px;
    219219   
    220     -webkit-clip-path: inset(20px 20px 20px 20px round 0px 4px 4px 0px);
    221     -webkit-transform: rotate(-90deg) translateY(-51.5px) translateX(31.5px);
    222 
     220    -webkit-clip-path: inset(20px 20px 20px 20px round 4px 4px 0px 0px);
    223221    background-color: transparent;
    224     border-bottom-right-radius: 4px;
    225     border-top-right-radius: 4px;
     222    overflow: hidden;
    226223
    227224    display: -webkit-flex;
     
    231228
    232229    opacity: 0;
    233     /* make zero width (rather than display:none) for AX and FKA */
    234     width: 0; /* will become 101px when shown */
     230    /* make zero height (rather than display:none) for AX and FKA */
     231    height: 0px; /* will become 116px when shown */
    235232
    236233}
     
    275272    opacity: 1;
    276273    /* resize to usable amount (rather than display:none) for AX and FKA */
    277     width: 116px;
     274    height: 116px;
    278275}
    279276
     
    283280    box-sizing: border-box !important;
    284281    height: 9px !important;
     282    min-width: 64px !important;
    285283    width: 64px !important;
    286284    padding: 0 !important;
    287     margin-right: 30px !important;
     285    margin: 0 !important;
    288286
    289287    background-color: transparent !important;
    290288    background-size: 100% 100%;
    291289    background-repeat: no-repeat;
     290    -webkit-transform-origin: 0 0;
     291    -webkit-transform: rotate(-90deg) translateY(28px) translateX(-40px);
    292292    mix-blend-mode: plus-lighter;
    293293}
     
    670670
    671671video:-webkit-full-screen::-webkit-media-controls-volume-slider {
     672    -webkit-transform: none;
    672673    background-color: transparent;
     674    min-width: 60px !important;
    673675    width: 60px !important;
     676    height: 9px !important;
    674677    margin: 0 !important;
    675678}
Note: See TracChangeset for help on using the changeset viewer.