diff --git a/source b/source index 8639eb9e205..ab7d7657bb0 100644 --- a/source +++ b/source @@ -4129,8 +4129,13 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The following terms are defined in CSS Anchor Positioning: CSSANCHOR
+ +accesskey
anchor
autocapitalize
autofocus
contenteditable
anchor
attributeThe anchor
+ attribute allows authors to set a reference to the implicit
+ anchor element. If an HTML element has an anchor
attribute specified, and there is an element in the
+ tree whose ID is equal to the value of the anchor
attribute, then the first such element in tree
+ order is the implicit anchor element of the element with the anchor
attribute. CSSANCHOR
The anchorElement
IDL attribute must
+ reflect the anchor
attribute.
+
+
The following example shows how to use CSS anchor positioning by using the anchor
attribute to set the implicit anchor element:
<div id="myanchor">myanchor</div>
+<div id="target" anchor="myanchor">target</div>
+
+<style>
+#myanchor {
+ margin: 100px;
+ width: 100px;
+ height: 100px;
+}
+#target {
+ position: absolute;
+ left: anchor(left);
+ top: anchor(bottom);
+ width: 100px;
+ height: 100px;
+}
+</style>
+ data-*
attributesThe topmost popover ancestor algorithm will return the topmost (latest in the showing auto popover list) ancestor popover for the provided popover or top layer element. Popovers can be related to each other in several ways, creating a tree of popovers. - There are two paths through which one popover (call it the "child" popover) can have a topmost + There are three paths through which one popover (call it the "child" popover) can have a topmost ancestor popover (call it the "parent" popover):
The popovers are nested within each other in the node tree. In this case, the descendant popover is the "child" and its topmost ancestor popover is the "parent".
A popover has the anchor
attribute set and it points
+ to an element whose ancestor is also a popover. In this case, the popover with the anchor
attribute is the "child".
An invoking element (e.g., a button
) has a popovertarget
attribute pointing to a popover. In this case,
the popover is the "child", and the popover subtree the invoking element is in is the
@@ -85387,6 +85438,9 @@ dictionary DragEventInit : MouseEventInit {
Run checkAncestor given newPopoverOrTopLayerElement's parent node within the flat tree.
Run checkAncestor given the result of running get an attribute by
+ name given newPopover and anchor
.
Run checkAncestor given invoker.
Return topmostPopoverAncestor.
input
anchor
+ popover
attribute.
+ as
link
@@ -142191,6 +142254,9 @@ INSERT INTERFACES HERE