Browse Source

request fullscreen on documentElement instead of body (#1621 #1624)

Hakim El Hattab 8 years ago
parent
commit
bac187f3a0
3 changed files with 2 additions and 17 deletions
  1. 0 6
      css/reveal.css
  2. 0 9
      css/reveal.scss
  3. 2 2
      js/reveal.js

+ 0 - 6
css/reveal.css

@@ -47,12 +47,6 @@ body {
   background-color: #fff;
   background-color: #fff;
   color: #000; }
   color: #000; }
 
 
-html:-webkit-full-screen-ancestor {
-  background-color: inherit; }
-
-html:-moz-full-screen-ancestor {
-  background-color: inherit; }
-
 /*********************************************
 /*********************************************
  * VIEW FRAGMENTS
  * VIEW FRAGMENTS
  *********************************************/
  *********************************************/

+ 0 - 9
css/reveal.scss

@@ -57,15 +57,6 @@ body {
 	color: #000;
 	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
  * VIEW FRAGMENTS

+ 2 - 2
js/reveal.js

@@ -1995,10 +1995,10 @@
 	 */
 	 */
 	function enterFullscreen() {
 	function enterFullscreen() {
 
 
-		var element = document.body;
+		var element = document.documentElement;
 
 
 		// Check which implementation is available
 		// Check which implementation is available
-		var requestMethod = element.requestFullScreen ||
+		var requestMethod = element.requestFullscreen ||
 							element.webkitRequestFullscreen ||
 							element.webkitRequestFullscreen ||
 							element.webkitRequestFullScreen ||
 							element.webkitRequestFullScreen ||
 							element.mozRequestFullScreen ||
 							element.mozRequestFullScreen ||