Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Commit

Permalink
request fullscreen on documentElement instead of body (hakimel#1621 h…
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Jun 21, 2016
1 parent 8136f76 commit b7b4615
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
6 changes: 0 additions & 6 deletions css/reveal.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ body {
background-color: #fff;
color: #000; }

html:-webkit-full-screen-ancestor {
background-color: inherit; }

html:-moz-full-screen-ancestor {
background-color: inherit; }

/*********************************************
* VIEW FRAGMENTS
*********************************************/
Expand Down
9 changes: 0 additions & 9 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ body {
color: #000;
}

// Ensures that the main background color matches the
// theme in fullscreen mode
html:-webkit-full-screen-ancestor {
background-color: inherit;
}
html:-moz-full-screen-ancestor {
background-color: inherit;
}


/*********************************************
* VIEW FRAGMENTS
Expand Down
4 changes: 2 additions & 2 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1980,10 +1980,10 @@
*/
function enterFullscreen() {

var element = document.body;
var element = document.documentElement;

// Check which implementation is available
var requestMethod = element.requestFullScreen ||
var requestMethod = element.requestFullscreen ||
element.webkitRequestFullscreen ||
element.webkitRequestFullScreen ||
element.mozRequestFullScreen ||
Expand Down

0 comments on commit b7b4615

Please sign in to comment.