Skip to content

Commit

Permalink
Bug 1325591 - Hide overlay and clickToPlay of video in Windows high c…
Browse files Browse the repository at this point in the history
…ontrast theme. r=mikedeboer

MozReview-Commit-ID: ARxnSMQ32el
  • Loading branch information
raylin committed Jan 16, 2017
1 parent 303a2b0 commit 7e487b7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion toolkit/content/widgets/videocontrols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
</div>

<div anonid="controlsOverlay" class="controlsOverlay stackItem">
<div class="controlsSpacerStack" aria-hideen="true">
<div class="controlsSpacerStack" aria-hidden="true">
<div anonid="controlsSpacer" class="controlsSpacer stackItem" role="none"></div>
<div anonid="clickToPlay" class="clickToPlay" hidden="true"></div>
</div>
Expand Down
23 changes: 23 additions & 0 deletions toolkit/themes/shared/media/videocontrols.css
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,26 @@ audio > xul|videocontrols {
[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

0 comments on commit 7e487b7

Please sign in to comment.