Skip to content

Commit 12ee321

Browse files
[HTML] Ensure "topmost popover ancestor" is only called for auto or hint popovers whatwg/html@0092d0c
1 parent dd80411 commit 12ee321

1 file changed

Lines changed: 28 additions & 31 deletions

File tree

HTML-popover-ja.html

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108

109109
●●options
110110

111-
spec_date:2026-05-14
112-
trans_update:2026-05-16
111+
spec_date:2026-06-03
112+
trans_update:2026-06-04
113113
source_checked:260514
114114
page_state_key:HTML
115115
spec_status:LS
@@ -1372,6 +1372,20 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
13721372
Let originalType be the current state of element's popover attribute.
13731373
</li>
13741374
<li>
1375+
%実効~種別 ~LET %元の種別
1376+
1377+
Let effectiveType be originalType.
1378+
</li>
1379+
<li>
1380+
<p>
1381+
~IF[
1382+
%元の種別 ~IN { `自動$st, `~hint$st }
1383+
]:
1384+
1385+
If originalType is Auto or Hint:
1386+
</p>
1387+
<ol>
1388+
<li>
13751389
%先祖 ~LET `最上層な~popover先祖を見出す$( ↓ )
13761390
⇒#
13771391
%要素,
@@ -1380,36 +1394,31 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
13801394
13811395
Let ancestor be the result of running the topmost popover ancestor algorithm given element, source, and true.
13821396
</li>
1383-
<li>
1384-
%実効~種別 ~LET %元の種別
1385-
1386-
Let effectiveType be originalType.
1387-
</li>
1388-
<li>
1397+
<li>
13891398
<p>
13901399
~IF[
13911400
~AND↓
13921401
]…
13931402
13941403
If all of the following are true:
13951404
</p>
1396-
<ul>
1397-
<li>
1405+
<ul>
1406+
<li>
13981407
%先祖 ~NEQ ~NULL
13991408
14001409
ancestor is not null;
14011410
</li>
1402-
<li>
1411+
<li>
14031412
%先祖 の`~popover~mode$el ~EQ `hint^l
14041413
14051414
ancestor's opened in popover mode is "hint"; and
14061415
</li>
1407-
<li>
1416+
<li>
14081417
%実効~種別 ~EQ `自動$st
14091418
14101419
effectiveType is the Auto state,
14111420
</li>
1412-
</ul>
1421+
</ul>
14131422
<p>
14141423
…ならば
14151424
@@ -1426,12 +1435,8 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
14261435
14271436
Hint popovers are lower priority than Auto popovers, so an Auto popover cannot have a Hint popover as a 'parent'. To resolve this case, the effectiveType is 'downgraded' to Hint.
14281437
</p>
1429-
</li>
1430-
<li>
1431-
~IF[
1432-
%実効~種別 ~IN { `自動$st, `~hint$st }
1433-
1434-
1438+
</li>
1439+
<li>
14351440
`~popover~stackをある所まで隠す$( ↓ )
14361441
⇒#
14371442
%文書,
@@ -1440,9 +1445,9 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
14401445
%~focusを復旧するべきか,
14411446
~T
14421447
1443-
If effectiveType is the Auto or Hint state, then run hide popover stack until given document, ancestor, Hint, shouldRestoreFocus, and true.
1448+
Run hide popover stack until given document, ancestor, Hint, shouldRestoreFocus, and true.
14441449
</li>
1445-
<li>
1450+
<li>
14461451
~IF[
14471452
%実効~種別 ~EQ `自動$st
14481453
@@ -1457,15 +1462,6 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
14571462
14581463
If effectiveType is the Auto state, then run hide popover stack until given document, ancestor, Auto, shouldRestoreFocus, and true.
14591464
</li>
1460-
<li>
1461-
<p>
1462-
~IF[
1463-
%実効~種別 ~IN { `自動$st, `~hint$st }
1464-
]:
1465-
1466-
If effectiveType is Auto or Hint:
1467-
</p>
1468-
<ol>
14691465
<li>
14701466
<p>
14711467
~IF[
@@ -1574,7 +1570,6 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
15741570
15751571
If effectiveType is Auto:
15761572
</p>
1577-
15781573
<ol>
15791574
<li>
15801575
~Assert:
@@ -1588,6 +1583,8 @@ <h3 title="The popover attribute">6.12. `popover^a 属性</h3>
15881583
Set element's opened in popover mode to "auto".
15891584
</li>
15901585
</ol>
1586+
</li>
1587+
<li>
15911588
<p>
15921589
~ELSE:
15931590

0 commit comments

Comments
 (0)