From 4c4404a0a366f00dbe1dc33fcdec0e5c50171d56 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Tue, 1 Nov 2022 16:22:03 +1300 Subject: [PATCH] Pre-apply orientation lock via FullscreenOptions --- fullscreen.bs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fullscreen.bs b/fullscreen.bs index 877f192..4712faf 100644 --- a/fullscreen.bs +++ b/fullscreen.bs @@ -172,6 +172,7 @@ enum FullscreenNavigationUI { dictionary FullscreenOptions { FullscreenNavigationUI navigationUI = "auto"; + OrientationLockType orientation; }; partial interface Element { @@ -210,6 +211,11 @@ partial interface mixin DocumentOrShadowRoot { free to honor user preference over the application's. The default value "{{FullscreenNavigationUI/auto}}" indicates no application preference. + When supplied, options's {{FullscreenOptions/orientation}} member indicates whether + the screen should be locked to the given [=screen orientation=]. User agents are always + free to honor user preference over the application's. When the value is missing, + no orientation lock is applied. +
document . {{Document/fullscreenEnabled}}

Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. @@ -275,7 +281,8 @@ are:

  • If error is false, then resize pendingDoc's top-level browsing context's active document's viewport's dimensions, optionally - taking into account options["{{FullscreenOptions/navigationUI}}"]: + taking into account options["{{FullscreenOptions/orientation}}"] and + options["{{FullscreenOptions/navigationUI}}"]: