From bac187f3a0f7e8f92d33ca0258fe2e96553d2930 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab <hakim.elhattab@gmail.com>
Date: Tue, 21 Jun 2016 11:30:12 +0200
Subject: [PATCH] request fullscreen on documentElement instead of body (#1621
 #1624)

---
 css/reveal.css  | 6 ------
 css/reveal.scss | 9 ---------
 js/reveal.js    | 4 ++--
 3 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/css/reveal.css b/css/reveal.css
index b2030745..778076e0 100644
--- a/css/reveal.css
+++ b/css/reveal.css
@@ -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
  *********************************************/
diff --git a/css/reveal.scss b/css/reveal.scss
index f8d6904b..9045428b 100644
--- a/css/reveal.scss
+++ b/css/reveal.scss
@@ -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
diff --git a/js/reveal.js b/js/reveal.js
index 10c609e5..7d9a3057 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1995,10 +1995,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 ||