fullscreen icon indicating copy to clipboard operation
fullscreen copied to clipboard

root element background propagation issue

Open wanderview opened this issue 9 years ago • 7 comments

@annevk says, we should not be propagating the background to the viewport in full screen. I ran into this problem in firefox when reveal.js full screened the body and lost my background image. Changing reveal.js to full screen the documentElement instead of the body avoided the problem.

@annevk thinks this is a spec issue.

wanderview avatar Jun 16 '16 15:06 wanderview

In particular, the propagation from HTML body to the viewport (if root doesn't have a background), or root to the viewport, should probably not happen in fullscreen. Otherwise ::backdrop will hide it. It seems that browsers don't propagate for root if it becomes fullscreen, but do for HTML body.

@tabatkins @fantasai thoughts?

annevk avatar Jun 17 '16 07:06 annevk

Note that fullscreen root doesn't have a visible ::backdrop pseudo-element, so it doesn't matter whether the background is propagated.

upsuper avatar Jun 17 '16 09:06 upsuper

Also note that a fullscreen body won't have the document level scrollbar because it is in general just a normal block element. So if you want to fullscreen the whole page, you should always request fullscreen on root. I don't think we want to make body any more special.

upsuper avatar Jun 17 '16 09:06 upsuper

Hmm, so why would fullscreen root not have a visible ::backdrop?

annevk avatar Jun 30 '16 08:06 annevk

That is #24.

upsuper avatar Jun 30 '16 08:06 upsuper

@upsuper can you still style ::backdrop for root? We didn't really address that there it seems.

annevk avatar Jun 30 '16 08:06 annevk

That's a... good question. In Gecko's implementation, you cannot, but the spec seems to indicate that you should be able to... I guess I can make Gecko behave that way...

upsuper avatar Jun 30 '16 08:06 upsuper