Move requirements for PiP window visibility and closing · w3c/picture-in-picture@1ff6a82
chrisn
·
2026-02-26
·
via Recent Commits to picture-in-picture:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -232,6 +232,11 @@ It is also RECOMMENDED that the Picture-in-Picture window has a maximum and
|
232 | 232 | minimum size. For example, it could be restricted to be between a quarter and |
233 | 233 | a half of one dimension of the screen. |
234 | 234 | |
| 235 | +When {{pictureInPictureElement}} is set, the Picture-in-Picture window MUST |
| 236 | +be visible, even when the [=document=]'s {{Window}} is not in [=Window/focus|focused=] or the [=document=]'s [=Document/visibility state=] is "hidden". The user |
| 237 | +agent SHOULD provide a way for users to manually close the Picture-in-Picture |
| 238 | +window. |
| 239 | + |
235 | 240 | ## Exit Picture-in-Picture ## {#exit-pip} |
236 | 241 | |
237 | 242 | When the <dfn>exit Picture-in-Picture algorithm</dfn> is invoked, |
@@ -294,14 +299,9 @@ available controls on the Picture-in-Picture window.
|
294 | 299 | |
295 | 300 | ## Interaction with Page Visibility ## {#page-visibility} |
296 | 301 | |
297 | | -When {{pictureInPictureElement}} is set, the Picture-in-Picture window MUST |
298 | | -be visible, even when the <a>Document</a> is not in focus or hidden. The user |
299 | | -agent SHOULD provide a way for users to manually close the Picture-in-Picture |
300 | | -window. |
301 | | - |
302 | | -The Picture-in-Picture window visibility MUST NOT be taken into account by the user agent to |
303 | | -determine if the <a>system visibility state</a> of a <a for="/">traversable navigable</a> has |
304 | | -changed. |
| 302 | +The Picture-in-Picture window visibility MUST NOT be taken into account by the |
| 303 | +user agent to determine if the <a>system visibility state</a> of a |
| 304 | +<a for="/">traversable navigable</a> has changed. |
305 | 305 | |
306 | 306 | ## One Picture-in-Picture window ## {#one-pip-window} |
307 | 307 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。