Clarify requirement for visibility of PiP window · w3c/picture-in-picture@b75322e
chrisn
·
2026-02-26
·
via Recent Commits to picture-in-picture:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -232,10 +232,12 @@ 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 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. |
| 235 | +When a {{DocumentOrShadowRoot}}'s {{pictureInPictureElement}} attribute is set, |
| 236 | +the [=Picture-in-Picture window=] MUST be visible, even when the |
| 237 | +{{DocumentOrShadowRoot}}'s [=relevant global object=]'s [=associated Document=]'s |
| 238 | +[=Document/visibility state=] is "hidden". |
| 239 | +The user agent SHOULD provide a way for users to manually close the |
| 240 | +Picture-in-Picture window. |
239 | 241 | |
240 | 242 | ## Exit Picture-in-Picture ## {#exit-pip} |
241 | 243 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。