Skip to content

Commit 2edd080

Browse files
[HTML] Properly set visibility state for nested documents whatwg/html@1796e9d
1 parent a3738f2 commit 2edd080

3 files changed

Lines changed: 63 additions & 47 deletions

File tree

HTML-document-sequences-ja.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@
172172

173173
●●options
174174

175-
spec_date:2026-03-12
176-
trans_update:2026-03-14
175+
spec_date:2026-03-31
176+
trans_update:2026-04-01
177177
source_checked:250609
178178
page_state_key:HTML
179179
spec_status:LS
@@ -653,6 +653,7 @@
653653
一過な作動化を有して:~HTMLinteraction#transient-activation
654654
文書~基底~URL:~HTMLurl#document-base-url
655655
利用者-作動化を消費する:~HTMLinteraction#consume-user-activation
656+
初期~可視性~状態を設定する:~HTMLinteraction#set-the-initial-visibility-state
656657

657658
~ORIGIN#coop-struct-report-only-value
658659
coOP.:~ORIGIN#coop-struct-value
@@ -1140,11 +1141,15 @@ <h4 title="Navigables">7.3.1. ~navigable</h4>
11401141
%~navigable の`親$nav ~SET %親
11411142
11421143
Set navigable's parent to parent.
1144+
</li>
1145+
<li>
1146+
`初期~可視性~状態を設定する$( %文書~状態 の`文書$dS, %~navigable の`辿可能な~navigable$navの`~system可視性~状態$nav )
1147+
1148+
Set the initial visibility state of documentState's document to navigable's traversable navigable's system visibility state.
11431149
</li>
11441150
</ol>
11451151
</div>
11461152

1147-
11481153
<section id="traversable-navigables">
11491154
<h5 title="Traversable navigables">7.3.1.1. 辿可能な~navigable</h5>
11501155

HTML-interaction-ja.html

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@
118118

119119
●●options
120120

121-
spec_date:2026-02-27
122-
trans_update:2026-02-28
123-
source_checked:240603
121+
spec_date:2026-03-31
122+
trans_update:2026-04-01
123+
source_checked:260331
124124
page_state_key:HTML
125125
spec_status:LS
126126
original_url:https://html.spec.whatwg.org/multipage/interaction.html
@@ -533,6 +533,7 @@
533533

534534
doc.可視性~状態:#visibility-state
535535
可視性~状態を更新する:#update-the-visibility-state
536+
初期~可視性~状態を設定する:#set-the-initial-visibility-state
536537
~page可視性~変化-時の手続き:#page-visibility-change-steps
537538
vsE.時刻印:#visibilitystateentry-timestamp
538539
vsE.可視性~状態:#visibilitystateentry-state
@@ -1151,6 +1152,7 @@
11511152
%文書:d
11521153
%~top文書:topDocument
11531154
%文書:doc
1155+
%文書:document
11541156
-:inclusiveAncestorDocuments
11551157
%~focus誘発元:focus trigger
11561158
%~target:focus target
@@ -1176,7 +1178,6 @@
11761178
%~window:window
11771179
%~window群:windows
11781180
%消費するか:consume
1179-
%文書:document
11801181
%~event:event
11811182
%何か閉じられたか:closedSomething
11821183
%-注視器:closeWatcher
@@ -1198,6 +1199,7 @@
11981199
%露呈する先祖~:ancestorsToReveal
11991200
%露呈する先祖:ancestorToReveal
12001201
%~index:parsedValue
1202+
%処理能~entry:-
12011203

12021204
●保安
12031205
通過制御-:gate::~
@@ -2308,10 +2310,10 @@ <h3 title="The hidden attribute">6.1. `hidden^a 属性</h3>
23082310
%露呈する先祖~群 に
23092311
( %先祖 の親~node, `details^l )
23102312
を`付加する$
2313+
</p>
23112314
23122315
If ancestor is slotted into the second slot of a details element which does not have an open attribute, then append (ancestor's parent node, "details") to ancestorsToReveal.
2313-
</p>
2314-
</li>
2316+
</li>
23152317
<li>
23162318
%先祖 ~SET `平坦~tree$における %先祖 の親~node
23172319
@@ -2550,7 +2552,7 @@ <h3 title="Page visibility">6.2. ~page可視性</h3>
25502552
Set document's visibility state to visibilityState.
25512553
</li>
25522554
<li>
2553-
%処理能~entry ~LET 新たな `VisibilityStateEntry$I
2555+
%処理能~entry ~LET `新たな~obj$( `VisibilityStateEntry$I )
25542556
— その
25552557
⇒#
25562558
`可視性~状態$vsE ~SET %可視性~状態,
@@ -2609,6 +2611,38 @@ <h3 title="Page visibility">6.2. ~page可視性</h3>
26092611
Fire an event named visibilitychange at document, with its bubbles attribute initialized to true.
26102612
</li>
26112613
</ol>
2614+
</div>
2615+
2616+
<div class="algo">
2617+
<p>
2618+
`初期~可視性~状態を設定する@
2619+
~algoは、
2620+
所与の
2621+
( `文書$ %文書, %可視性~状態 )
2622+
に対し:
2623+
2624+
To set the initial visibility state of Document document to visibilityState:
2625+
</p>
2626+
<ol>
2627+
<li>
2628+
%文書 の`可視性~状態$doc ~SET %可視性~状態
2629+
2630+
Set document's visibility state to visibilityState.
2631+
</li>
2632+
<li>
2633+
%処理能~entry ~LET `新たな~obj$( `VisibilityStateEntry$I )
2634+
— その
2635+
⇒#
2636+
`可視性~状態$vsE ~SET %文書 の`可視性~状態$doc,
2637+
`時刻印$vsE ~SET 0
2638+
2639+
Queue a new VisibilityStateEntry whose visibility state is document's visibility state and whose timestamp is 0.
2640+
</li>
2641+
<li>
2642+
`処理能~entryを~queueする$( %処理能~entry )
2643+
2644+
</li>
2645+
</ol>
26122646
</div>
26132647

26142648
<section id="the-visibilitystateentry-interface">
@@ -7088,13 +7122,11 @@ <h4 title="Focus management APIs">6.6.6. ~focus管理~API</h4>
70887122
%document へ, または %document を経て
70897123
]届けられているならば ~T を返す。
70907124
~ELSE_ ~F を返す。
7091-
これは概ね、
7092-
~focusされている[
7093-
当の文書, または
7094-
その内側に入子にされている文書
7095-
]に対応する。
7125+
これは概ね、[
7126+
%document か その内側に入子にされた文書
7127+
]が~focusされていることに対応する。
70967128
7097-
Returns true if key events are being routed through or to the document; otherwise, returns false. Roughly speaking, this corresponds to the document, or a document nested inside this one, being focused.
7129+
Returns true if key events are being routed through or to document; otherwise, returns false. Roughly speaking, this corresponds to document, or a document nested inside document, being focused.
70987130
</dd>
70997131

71007132
<dt>%window.`focus()$m</dt>
@@ -7108,7 +7140,7 @@ <h4 title="Focus management APIs">6.6.6. ~focus管理~API</h4>
71087140
<dd>
71097141
~focusを %element へ移動する。
71107142
7111-
Moves the focus to the element.
7143+
Moves the focus to element.
71127144
</dd>
71137145
<dd>
71147146
%element は`~navigable容器$である場合、
@@ -8684,7 +8716,7 @@ <h4 title="Editing APIs">6.8.4. 編集~API</h4>
86848716
<li>
86858717
`contenteditable$a 属性の状態 ~IN { `~T$st, `素な~textのみ$st }
86868718
8687-
an HTML element with its contenteditable attribute in the true state or Plaintext-Only state, or\
8719+
an HTML element with its contenteditable attribute in the true state or plaintext-only state, or\
86888720
</li>
86898721
<li>
86908722
次を満たす`文書$の`子$である

HTML-navigation-ja.html

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181

182182
●●options
183183

184-
spec_date:2026-03-12
185-
trans_update:2026-03-14
184+
spec_date:2026-03-31
185+
trans_update:2026-04-01
186186
source_checked:250801
187187
page_state_key:HTML
188188
spec_status:LS
@@ -682,13 +682,10 @@
682682
連列的~focus~naviの始点:~HTMLinteraction#sequential-focus-navigation-starting-point
683683
一過な作動化を有して:~HTMLinteraction#transient-activation
684684
居残な作動化を有して:~HTMLinteraction#sticky-activation
685-
doc.可視性~状態:~HTMLinteraction#visibility-state
686685
~objを~focusする:~HTMLinteraction#focusing-steps
687686
可視性~状態を更新する:~HTMLinteraction#update-the-visibility-state
687+
初期~可視性~状態を設定する:~HTMLinteraction#set-the-initial-visibility-state
688688
連列的~focus~naviの始点:~HTMLinteraction#sequential-focus-navigation-starting-point
689-
vsE.時刻印:~HTMLinteraction#visibilitystateentry-timestamp
690-
vsE.可視性~状態:~HTMLinteraction#visibilitystateentry-state
691-
692689
先祖を露呈する:~HTMLinteraction#ancestor-revealing-algorithm
693690

694691
~iframe~srcdoc文書:~HEembed#an-iframe-srcdoc-document
@@ -1004,8 +1001,6 @@
10041001

10051002
現在の高分解能~時刻:~HRTIME#dfn-current-high-resolution-time
10061003

1007-
処理能~entryを~queueする:~TIMELINE#queue-a-performanceentry
1008-
10091004
~navi計時~entryを作成する:~NAV-TIMING#create-the-navigation-timing-entry
10101005

10111006
st.Text:~HEinput#text-(type=text)-state-and-search-state-(type=search)
@@ -11617,6 +11612,11 @@ <h5 title="Updating the traversable">7.4.6.1 辿可能の更新-法</h5>
1161711612
`文書を作動中にする$( %新たな文書 )
1161811613
1161911614
Make active newDocument.
11615+
</li>
11616+
<li>
11617+
`初期~可視性~状態を設定する$( %新たな文書, %~navigable の`辿可能な~navigable$navの`~system可視性~状態$nav )
11618+
11619+
Set the initial visibility state of newDocument to navigable's traversable navigable's system visibility state.
1162011620
</li>
1162111621
</ol>
1162211622
</div>
@@ -12581,27 +12581,6 @@ <h5 title="Updating the document">7.4.6.2. 文書の更新-法</h5>
1258112581
]の `Window$sl 内部~slot ~SET %~window
1258212582
1258312583
Set document's browsing context's WindowProxy's [[Window]] internal slot value to window.
12584-
</li>
12585-
<li>
12586-
%文書 の`可視性~状態$doc ~SET %文書 の`~node~navigable$の`辿可能な~navigable$navの`~system可視性~状態$nav
12587-
12588-
Set document's visibility state to document's node navigable's traversable navigable's system visibility state.
12589-
</li>
12590-
<li>
12591-
%処理能~entry ~LET `新たな~obj$( `VisibilityStateEntry$I, 【 %文書 に`関連な~realm$】 )
12592-
12593-
</li>
12594-
<li>
12595-
%処理能~entry の
12596-
⇒#
12597-
`可視性~状態$vsE ~SET %文書 の`可視性~状態$doc,
12598-
`時刻印$vsE ~SET 0
12599-
12600-
</li>
12601-
<li>
12602-
`処理能~entryを~queueする$( %処理能~entry )
12603-
12604-
Queue a new VisibilityStateEntry whose visibility state is document's visibility state and whose timestamp is zero.
1260512584
</li>
1260612585
<li>
1260712586
%~window に`関連な設定群~obj$の`実行は準備済みか$enV ~SET ~T

0 commit comments

Comments
 (0)