惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
博客园_首页
Vercel News
Vercel News
WordPress大学
WordPress大学
美团技术团队
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
Y
Y Combinator Blog
博客园 - 【当耐特】
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
腾讯CDC
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Recent Announcements
Recent Announcements
雷峰网
雷峰网
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
The Register - Security
The Register - Security
Jina AI
Jina AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
P
Privacy & Cybersecurity Law Blog
Recorded Future
Recorded Future
Help Net Security
Help Net Security
N
News and Events Feed by Topic
博客园 - Franky
P
Proofpoint News Feed
L
LINUX DO - 热门话题
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
月光博客
月光博客
D
Docker
Google DeepMind News
Google DeepMind News
有赞技术团队
有赞技术团队
IT之家
IT之家
Security Latest
Security Latest
L
LangChain Blog
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks

Recent Commits to fullscreen:main

Update popover references to new algorithms Add keyboard locking option Meta: update repository files Review Draft Publication: January 2026 Meta: fix link error Meta: link Korean translation Reference close request steps Review Draft Publication: July 2025 Fix dangling fullscreen flag when exiting a disconnected element Meta: disambiguate "document" for Bikeshed Meta: link Simplified Chinese translation Review Draft Publication: July 2024 Don't close ancestor popovers when fullscreening Meta: update repository files Meta: update repository files Review Draft Publication: July 2023 Remove top layer definitions, now that CSS Position 4 contains them Consume user activation in `element.requestFullscreen()` Review Draft Publication: January 2023
Hide popovers when making an element fullscreen · whatwg/fullscreen@afd56a3
josepharhar · 2023-05-22 · via Recent Commits to fullscreen:main
Original file line numberDiff line numberDiff line change

@@ -61,8 +61,16 @@ stated otherwise it is unset.

6161

<p>All <a for=/>documents</a> have an associated <dfn>list of pending fullscreen events</dfn>, which

6262

is an <a>ordered set</a> of (<a>string</a>, <a>element</a>) <a>tuples</a>. It is initially empty.

6363
64-

<p>To <dfn>fullscreen an <var>element</var></dfn>, set <var>element</var>'s <a>fullscreen flag</a>

65-

and <a for="top layer">add</a> it to its <a>node document</a>'s <a>top layer</a>.

64+

<p>To <dfn>fullscreen an <var>element</var></dfn>:

65+
66+

<ol>

67+

<li><p>Run <a>hide all popovers</a> given <var>element</var>'s <a>node document</a>.

68+
69+

<li><p>Set <var>element</var>'s <a>fullscreen flag</a>.

70+
71+

<li><p><a for="top layer">Add</a> <var>element</var> to <var>element</var>'s <a>node document</a>'s

72+

<a>top layer</a>.

73+

</ol>

6674
6775

<p>To <dfn>unfullscreen an <var>element</var></dfn>, unset <var>element</var>'s

6876

<a>fullscreen flag</a> and <a>iframe fullscreen flag</a> (if any), and <a for=set>remove</a> it from

@@ -230,6 +238,10 @@ if all of the following are true, and false otherwise:

230238

<li><p><var>element</var>'s <a>node document</a> is <a>allowed to use</a> the "<code><a

231239

data-lt="fullscreen-feature">fullscreen</a></code>" feature.

232240

<!-- cross-process, recursive -->

241+
242+

<li><p><var>element</var> <a for=Element>namespace</a> is not the <a>HTML namespace</a> or

243+

<var>element</var>'s <a>popover visibility state</a> is <a for="popover visibility

244+

state">hidden</a>.

233245

</ul>

234246
235247

<div algorithm="requestFullscreen(options)">