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

这个提交包含在:
Hakim El Hattab 2016-06-21 11:30:12 +02:00
父节点 c2997c605d
当前提交 bac187f3a0
共有 3 个文件被更改,包括 2 次插入17 次删除

查看文件

@ -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
*********************************************/

查看文件

@ -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

查看文件

@ -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 ||