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

Copy opener document's compatibility mode #128

Merged
merged 2 commits into from
Oct 1, 2024
Merged
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
14 changes: 9 additions & 5 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Abstract: in an always-on-top window.
</pre>

<pre class="link-defaults">
spec:dom; type:dfn; for:Document; text:mode
spec:dom; type:dfn; text:origin
spec:html; type:dfn; for:navigable; text:top-level traversable
spec:html; type:dfn; for:Window; text:navigable
Expand Down Expand Up @@ -203,17 +204,20 @@ specified for document picture-in-picture windows, to avoid further interop
problems.
</p>

11. Set |pip traversable|'s <a>Is Document Picture-in-Picture</a> boolean to
11. Set |pip traversable|'s <a>active document</a>'s <a>mode</a> to
<a>this</a>'s <a>relevant global object</a>'s <a>associated Document</a>'s
<a>mode</a>.
12. Set |pip traversable|'s <a>Is Document Picture-in-Picture</a> boolean to
<code>true</code>.
12. If |options|["{{DocumentPictureInPictureOptions/width}}"] exists and is
13. If |options|["{{DocumentPictureInPictureOptions/width}}"] exists and is
greater than zero:
1. Optionally, clamp or ignore |options|["{{DocumentPictureInPictureOptions/width}}"] if it is too large or too
small in order to fit a user-friendly window size.
2. Optionally, size |pip traversable|'s <a>active browsing context</a>'s
window such that the distance between the left and right edges of the
viewport are |options|["{{DocumentPictureInPictureOptions/width}}"]
pixels.
13. If |options|["{{DocumentPictureInPictureOptions/height}}"] exists and is
14. If |options|["{{DocumentPictureInPictureOptions/height}}"] exists and is
greater than zero:
1. Optionally, clamp or ignore |options|["{{DocumentPictureInPictureOptions/height}}"] if it is too large or too
small in order to fit a user-friendly window size.
Expand All @@ -224,10 +228,10 @@ problems.

If |options|["{{DocumentPictureInPictureOptions/preferInitialWindowPlacement}}"]
exists and is true, then the user agent may use this hint to prefer behavior
that is similar that is similar to steps 12 and 13, rather than considering any
that is similar that is similar to steps 13 and 14, rather than considering any
previous position or size of any previously closed |pip traversable| window.

14. If |options|["{{DocumentPictureInPictureOptions/disallowReturnToOpener}}"] exists
15. If |options|["{{DocumentPictureInPictureOptions/disallowReturnToOpener}}"] exists
and is <code>true</code>, the user agent should not display UI affordances
on the picture-in-picture window that allow the user to return to the
opener window.
Expand Down
Loading