You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When these features attempt to scroll to a target which is in the element's subtree, the user agent will remove the hidden attribute in order to reveal the content before scrolling to it by running the ancestor hidden-until-found revealing algorithm on the target node.
1942
+
When these features attempt to scroll to a target which is in the element's subtree, the user agent will remove the hidden attribute in order to reveal the content before scrolling to it by running the ancestor revealing algorithm on the target node.
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.
2316
+
</p>
2317
+
</li>
2318
+
<li>
2319
+
%先祖 ~SET `平坦~tree$における %先祖 の親~node
2320
+
◎
2321
+
Set ancestor to the parent node of ancestor within the flat tree.
2322
+
</li>
2323
+
</ol>
2324
+
</li>
2325
+
<li>
2326
+
<p>
2327
+
%露呈する先祖~群 を成す
2328
+
~EACH( ( %露呈する先祖, %露呈~型 ) )
2329
+
に対し:
2330
+
◎
2331
+
For each (ancestorToReveal, revealType) of ancestorsToReveal:
2332
+
</p>
2333
+
<ol>
2334
+
<li>
2335
+
~IF[
2336
+
%露呈する先祖 は`接続されて$いない
2337
+
]
2338
+
⇒
2339
+
~RET
2340
+
◎
2341
+
If ancestorToReveal is not connected, then return.
2342
+
</li>
2343
+
<li>
2344
+
<p>
2345
+
~IF[
2346
+
%露呈~型 ~EQ `until-found^l
2259
2347
]:
2260
2348
◎
2261
-
If currentNode has the hidden attribute in the Hidden Until Found state, then:
2349
+
If revealType is "until-found":
2262
2350
</p>
2263
2351
<ol>
2264
2352
<li>
2265
-
`~eventを発火する$( %現在の~node, `beforematch$et )
2353
+
~IF[
2354
+
%露呈する先祖 の `hidden$a 属性の状態 ~NEQ `見出されるまでは非可視$st
2355
+
]
2356
+
⇒
2357
+
~RET
2358
+
◎
2359
+
If ancestorToReveal's hidden attribute is not in the Hidden Until Found state, then return.
2360
+
</li>
2361
+
<li>
2362
+
`~eventを発火する$( %露呈する先祖, `beforematch$et )
2266
2363
— 次のように初期化して
2267
2364
⇒
2268
2365
`bubbles$m 属性 ~SET ~T
2269
2366
◎
2270
-
Fire an event named beforematch at currentNode with the bubbles attribute initialized to true.
2367
+
Fire an event named beforematch at ancestorToReveal with the bubbles attribute initialized to true.
2271
2368
</li>
2272
2369
<li>
2273
-
%現在の~node から `hidden$a 属性を除去する
2370
+
~IF[
2371
+
%露呈する先祖 は`接続されて$いない
2372
+
]
2373
+
⇒
2374
+
~RET
2274
2375
◎
2275
-
Remove the hidden attribute from currentNode.
2376
+
If ancestorToReveal is not connected, then return.
2377
+
</li>
2378
+
<li>
2379
+
~IF[
2380
+
%露呈する先祖 の `hidden$a 属性の状態 ~NEQ `見出されるまでは非可視$st
2381
+
]
2382
+
⇒
2383
+
~RET
2384
+
◎
2385
+
If ancestorToReveal's hidden attribute is not in the Hidden Until Found state, then return.
2386
+
</li>
2387
+
<li>
2388
+
%露呈する先祖 から `hidden$a 属性を除去する
2389
+
◎
2390
+
Remove the hidden attribute from ancestorToReveal.
2276
2391
</li>
2277
2392
</ol>
2278
2393
</li>
2279
2394
<li>
2280
-
%現在の~node ~SET `平坦~tree$の中の %現在の~node の親~node
2395
+
<p>
2396
+
~ELSE:
2397
+
◎
2398
+
Otherwise:
2399
+
</p>
2400
+
<ol>
2401
+
<li>
2402
+
~Assert:
2403
+
%露呈~型 ~EQ `details^l
2404
+
◎
2405
+
Assert: revealType is "details".
2406
+
</li>
2407
+
<li>
2408
+
~IF[
2409
+
%露呈する先祖 は `open$a 属性を有する
2410
+
]
2411
+
⇒
2412
+
~RET
2281
2413
◎
2282
-
Set currentNode to the parent node of currentNode within the flat tree.
2414
+
If ancestorToReveal has an open attribute, then return.
2283
2415
</li>
2416
+
<li>
2417
+
%露呈する先祖 の `open$a 属性の値 ~SET 空~文字列
2418
+
◎
2419
+
Set ancestorToReveal's open attribute to the empty string.
subject can additionally become inert via the inert attribute, but only if specified on subject itself (i.e., subject escapes inertness of ancestors); subject's flat tree descendants can become inert in a similar fashion.
0 commit comments