// https://fullscreen.spec.whatwg.org/#ref-for-document
partial interface Document {
    [LegacyLenientSetter] readonly attribute boolean fullscreenEnabled;
    [LegacyLenientSetter, Unscopable] readonly attribute boolean fullscreen; // historical

    Promise<undefined> exitFullscreen();

    attribute EventHandler onfullscreenchange;
    attribute EventHandler onfullscreenerror;
};
