Document user activation requirement of the Fullscreen API #22303
Labels
Content:WebAPI
Web API docs
effort: medium
This task is a medium effort.
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
Implementations of the Fullscreen API have always required "user activation" to go fullscreen, such as a click event. The documentation on MDN doesn't make any mention of this.
What did you expect to see?
Probably link to a common page describing user activation in general, and expand the
toggleFullscreen()
example to use a "click" event handler, so that it can be copy-pasted and basically work.Do you have any supporting links, references, or citations?
In the spec this is documented here:
https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
And the requirement to consume the user gesture is being added here:
whatwg/fullscreen#153
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/element/requestfullscreen
The text was updated successfully, but these errors were encountered: