Re: [whatwg/fullscreen] Propose to always render elements in the top layer as if it is fixed positioned (#19)

So what I did is, explicitly overriding the viewport's scrollbar style (without touching anything else) when the fullscreen element is neither null nor the root. (Code and comment can be found [here](https://dxr.mozilla.org/mozilla-central/rev/b69a5bbb5e40bd426e35222baa600b481e50d265/layout/base/nsPresContext.cpp#1420-1424))

So `overflow` of `<body>` would be propagated to viewport as normal if `<html>` has its default value of `overflow`, but if we are in fullscreen, even if the `overflow` is `scroll`, the viewport would behave as if it is `hidden`. I'd propose we add this behavior to the spec.

The wording could probably be: when the fullscreen element is neither null nor the root element, the computed value of viewport's `overflow` property is ignored, and `hidden` is used instead.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/19#issuecomment-229536220

Received on Thursday, 30 June 2016 01:30:19 UTC