Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-apply orientation lock via FullscreenOptions #207

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions fullscreen.bs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ enum FullscreenNavigationUI {

dictionary FullscreenOptions {
FullscreenNavigationUI navigationUI = "auto";
OrientationLockType orientation;
};

partial interface Element {
Expand Down Expand Up @@ -206,6 +207,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, <var>options</var>'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.

<dt><code><var>document</var> . {{Document/fullscreenEnabled}}</code>
<dd><p>Returns true if <var>document</var> has the ability to display <a>elements</a> fullscreen
and <a>fullscreen is supported</a>, or false otherwise.
Expand Down Expand Up @@ -269,10 +275,7 @@ are:
<li><p>Return <var>promise</var>, and run the remaining steps <a>in parallel</a>.

<li>
<p>If <var>error</var> is false, then resize <var>pendingDoc</var>'s <a>node navigable</a>'s
<a for=navigable>top-level traversable</a>'s <a for=navigable>active document</a>'s viewport's
dimensions, optionally taking into account
<var>options</var>["{{FullscreenOptions/navigationUI}}"]:
<var>options</var>["{{FullscreenOptions/orientation}}"] and <var>options</var>["{{FullscreenOptions/navigationUI}}"]:
<!-- cross-process -->

<table>
Expand Down