concept
Implicit anchor — CSS reference
A host language can establish an implicit anchor without an anchor-name declaration. A popover shown by its invoker button is a practical HTML example. This fixture uses the invoker association and inset functions; popover focus behavior is not evaluated.
Formal Syntax & Structure
css syntaxcss
position-anchor: auto;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Implicit anchor</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#stage{position:relative;width:300px;height:220px}#a{position:relative;left:100px;top:70px;width:60px;height:30px;padding:0}#b{position:fixed;position-anchor:auto;inset:auto;margin:0;top:anchor(bottom);left:anchor(left);width:80px;height:45px;box-sizing:border-box;background:#2563eb;color:white}</style><body><div id="stage"><button id="a" popovertarget="b">Show note</button><div id="b" popover>Note</div></div><script>document.querySelector("#a").click()</script></body></html>