Title: [182924] trunk/Source/WebCore
Revision
182924
Author
roger_f...@apple.com
Date
2015-04-16 16:45:22 -0700 (Thu, 16 Apr 2015)

Log Message

Media element time displays shouldn't wrap.
https://bugs.webkit.org/show_bug.cgi?id=143854.
<rdar://problem/20284766>

Reviewed by Brent Fulgham.

* Modules/mediacontrols/mediaControlsApple.css:
(::-webkit-media-controls): Don't wrap any text.
(audio::-webkit-media-controls-time-remaining-display): Also increase remaining time display width by 1.
(audio::-webkit-media-controls-time-remaining-display.five-digit-time): Ditto.
(audio::-webkit-media-controls-time-remaining-display.six-digit-time): Ditto.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (182923 => 182924)


--- trunk/Source/WebCore/ChangeLog	2015-04-16 23:41:27 UTC (rev 182923)
+++ trunk/Source/WebCore/ChangeLog	2015-04-16 23:45:22 UTC (rev 182924)
@@ -1,3 +1,17 @@
+2015-04-16  Roger Fong  <roger_f...@apple.com>
+
+        Media element time displays shouldn't wrap.
+        https://bugs.webkit.org/show_bug.cgi?id=143854.
+        <rdar://problem/20284766>
+
+        Reviewed by Brent Fulgham.
+
+        * Modules/mediacontrols/mediaControlsApple.css:
+        (::-webkit-media-controls): Don't wrap any text.
+        (audio::-webkit-media-controls-time-remaining-display): Also increase remaining time display width by 1.
+        (audio::-webkit-media-controls-time-remaining-display.five-digit-time): Ditto.
+        (audio::-webkit-media-controls-time-remaining-display.six-digit-time): Ditto.
+
 2015-04-16  Chris Dumez  <cdu...@apple.com>
 
         Add assertions to make sure ActiveDOMObject::suspend() / resume() / stop() overrides don't fire events

Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css (182923 => 182924)


--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css	2015-04-16 23:41:27 UTC (rev 182923)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css	2015-04-16 23:45:22 UTC (rev 182924)
@@ -57,6 +57,7 @@
     -webkit-justify-content: flex-end;
     -webkit-flex-direction: column;
     font: -webkit-small-control;
+    white-space: nowrap;
     -webkit-font-smoothing: subpixel-antialiased;
 }
 
@@ -485,6 +486,7 @@
     position: relative;
     bottom: 0.5px;
     font-family: -apple-system-font-monospaced-numbers;
+    -webkit-text-size-adjust:none;
     mix-blend-mode: plus-lighter;
 }
 
@@ -500,13 +502,13 @@
 audio::-webkit-media-controls-time-remaining-display {
     margin-left: 8px;
     margin-right: 16px;
-    width: 36px;
-    min-width: 36px;
+    width: 37px;
+    min-width: 37px;
 }
 
 video::-webkit-media-controls-time-remaining-display.five-digit-time,
 audio::-webkit-media-controls-time-remaining-display.five-digit-time {
-    min-width: 46px;
+    min-width: 47px;
 }
 
 video::-webkit-media-controls-current-time-display.five-digit-time,
@@ -516,7 +518,7 @@
 
 video::-webkit-media-controls-time-remaining-display.six-digit-time,
 audio::-webkit-media-controls-time-remaining-display.six-digit-time {
-    min-width: 53px;
+    min-width: 54px;
 }
 
 video::-webkit-media-controls-current-time-display.six-digit-time,
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to