From 46d73d682359b046fe427caf399cd269e1b51a1f Mon Sep 17 00:00:00 2001 From: dshin-moz <102040459+dshin-moz@users.noreply.github.com> Date: Tue, 9 Jun 2026 11:24:36 -0400 Subject: [PATCH] Specify position-anchor: auto in the popover-hint example. Due to back-compat issues [1], popovers don't automatically look for the implicit anchor unless either `position-anchor: auto` is specified, or `position-area` is not `none` (With the default value of `position-anchor: normal`). This example, because it uses `anchor()` and `anchor-center`, requires explicitly specifying `position-anchor: auto`, as of Bug 2030351. [1]: https://github.com/w3c/csswg-drafts/issues/13067 --- popover-api/popover-hint/index.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/popover-api/popover-hint/index.css b/popover-api/popover-hint/index.css index 68e6c9f7..269776dd 100644 --- a/popover-api/popover-hint/index.css +++ b/popover-api/popover-hint/index.css @@ -65,6 +65,8 @@ body { position: absolute; bottom: calc(anchor(top) + 20px); justify-self: anchor-center; + /* Not required if using position-area. */ + position-anchor: auto; margin: 0; width: 200px;