Bug 1325591 - Hide overlay and clickToPlay of video in Windows high contrast theme. r=mikedeboer
authorRay Lin <ralin@mozilla.com>
Mon, 16 Jan 2017 12:06:07 +0800
changeset 377184 27346172ee35332e28011fc4143de2bce10eaef8
parent 377183 280836582bde2dbc2f883ffb85f56cfc65c593b0
child 377185 ae0f6512ab35dea681bc48be51aa15a845621dcc
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer
bugs1325591
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1325591 - Hide overlay and clickToPlay of video in Windows high contrast theme. r=mikedeboer MozReview-Commit-ID: ARxnSMQ32el
toolkit/themes/shared/media/videocontrols.css
--- a/toolkit/themes/shared/media/videocontrols.css
+++ b/toolkit/themes/shared/media/videocontrols.css
@@ -472,8 +472,31 @@ audio > xul|videocontrols {
 [error="errorAborted"]         > [anonid="errorAborted"],
 [error="errorNetwork"]         > [anonid="errorNetwork"],
 [error="errorDecode"]          > [anonid="errorDecode"],
 [error="errorSrcNotSupported"] > [anonid="errorSrcNotSupported"],
 [error="errorNoSource"]        > [anonid="errorNoSource"],
 [error="errorGeneric"]         > [anonid="errorGeneric"] {
   display: inline;
 }
+
+/* For high contrast theme in Windows */
+%ifdef XP_WIN
+.controlsSpacer,
+.clickToPlay {
+  background-color: transparent;
+}
+
+.controlsSpacer:hover {
+  background-color: rgb(254,255,255);
+  opacity: .4;
+}
+
+@media (-moz-windows-default-theme) {
+  .controlsSpacer {
+    background-color: rgba(255,255,255,.4);
+  }
+
+  .clickToPlay {
+    background-color: #1a1a1a;
+  }
+}
+%endif