Re: [whatwg/fullscreen] document.fullscreenElement in scroll event after entering fullscreen matters for compat (#74)

I would support that. I think it makes sense to have the document changes its state as soon as possible, hopefully before any script can get a chance to execute, so that we can limit the number of necessary reflow to the minimum.

In the HTML spec, scroll and resize are both dispatched before fullscreen steps, which is probably bad based on that... So yes, let's make it change the state immediately, and keep dispatching events (and resolving promise) in the animation frame task.

Not sure how spec should say about that, though.

-- 
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/74#issuecomment-275956459

Received on Sunday, 29 January 2017 23:48:45 UTC