The Fullscreen API standard defines an API for elements to display themselves fullscreen.
Fullscreen API @ GitHub