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
Add imperative access to invoker, and connect to implicit anchor element
This includes two related changes:
1. The `showPopover()` and `togglePopover()` methods now include an
options bag that allows setting the popover invoker.
2. Popover invokers (declaratively or imperatively set) now create
an implicit anchor reference for that popover.
This new behavior was resolved in the [WHATWG/CSSWG/OpenUI joint task
force meeting on June 26, 2024](whatwg#9144 (comment)).
Closeswhatwg#10442Closeswhatwg#10675
<li><dfn data-x-href="https://drafts.csswg.org/css-contain/#propdef-content-visibility" data-x="content-visibility-auto">'auto'</dfn> value for <span>'content-visibility'</span></li>
4194
4194
</ul>
4195
+
4196
+
<p>The following terms are defined in <cite>CSS Anchor Positioning</cite>: <ref>CSSANCHOR</ref></p>
<!-- TODO: I'm not sure what the correct way to handle a tri-state like this. This is generally
85794
+
just trying to make it cleaner to use `force` in the algorithm. -->
85795
+
<li><p>Let <var>force</var> be one of true, false, or unset, initially unset.</p></li>
85796
+
85797
+
<li><p>If <var>options</var> is a boolean, set <var>force</var> to <var>options</var>. Otherwise,
85798
+
if <var>options</var>["<code data-x="">force</code>"] <span data-x="map exists">exists</span>,
85799
+
set <var>force</var> to <var>options</var>["<code data-x="">force</code>"].</p></li>
85800
+
85772
85801
<li><p>If <span>this</span>'s <span>popover visibility state</span> is <span
85773
-
data-x="popover-showing-state">showing</span>, and <var>force</var> is not present or false, then
85774
-
run the <span>hide popover algorithm</span> given <span>this</span>, true, true, and
85775
-
true.</p></li>
85802
+
data-x="popover-showing-state">showing</span>, and <var>force</var> is unset or false, then run
85803
+
the <span>hide popover algorithm</span> given <span>this</span>, true, true, and true.</p></li>
85776
85804
85777
-
<li><p>Otherwise, if <var>force</var> is not present or true, then run <span>show popover</span>
85778
-
given <span>this</span>, true, and null.</p></li>
85805
+
<li><p>Otherwise, if <var>force</var> is unset or true, then run <span>show popover</span> given
85806
+
<span>this</span>, true, and <var>options</var>["<code data-x="">invoker</code>"].</p></li>
85779
85807
85780
85808
<li>
85781
85809
<p>Otherwise:</p>
@@ -144093,6 +144121,9 @@ INSERT INTERFACES HERE
144093
144121
<dt id="refsCSSALIGN">[CSSALIGN]</dt>
144094
144122
<dd><cite><a href="https://w3c.github.io/csswg-drafts/css-align/">CSS Box Alignment</a></cite>, E. Etemad, T. Atkins. W3C.</dd>
144095
144123
144124
+
<dt id="refsCSSANCHOR">[CSSANCHOR]</dt>
144125
+
<dd><cite><a href="https://www.w3.org/TR/css-anchor-position-1/">CSS Anchor Positioning</a></cite>, T. Atkins, E. Etemad, I. Kilpatrick. W3C.</dd>
144126
+
144096
144127
<dt id="refsCSSANIMATIONS">[CSSANIMATIONS]</dt>
144097
144128
<dd><cite><a href="https://w3c.github.io/csswg-drafts/css-animations/">CSS Animations</a></cite>, D. Jackson, D. Hyatt, C. Marrin, S. Galineau, L. Baron. W3C.</dd>
0 commit comments