Skip to content

Commit

Permalink
fixes ff overview rendering bug #1649
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 10, 2016
1 parent e76855e commit 7547b89
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion css/reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,8 @@ body {
perspective-origin: 50% 50%;
-webkit-perspective: 700px;
perspective: 700px; }
.reveal.overview .slides {
-moz-transform-style: preserve-3d; }
.reveal.overview .slides section {
height: 100%;
top: 0 !important;
Expand Down Expand Up @@ -1028,7 +1030,8 @@ body {
overflow: visible; }
.reveal.overview .backgrounds {
-webkit-perspective: inherit;
perspective: inherit; }
perspective: inherit;
-moz-transform-style: preserve-3d; }
.reveal.overview .backgrounds .slide-background {
opacity: 1;
visibility: visible;
Expand Down
10 changes: 10 additions & 0 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,12 @@ body {
perspective-origin: 50% 50%;
perspective: 700px;

.slides {
// Fixes overview rendering errors in FF48+, not applied to
// other browsers since it degrades performance
-moz-transform-style: preserve-3d;
}

.slides section {
height: 100%;
top: 0 !important;
Expand Down Expand Up @@ -1060,6 +1066,10 @@ body {

.backgrounds {
perspective: inherit;

// Fixes overview rendering errors in FF48+, not applied to
// other browsers since it degrades performance
-moz-transform-style: preserve-3d;
}

.backgrounds .slide-background {
Expand Down

0 comments on commit 7547b89

Please sign in to comment.