disclosure.css
1[popover] {
2  position-anchor: --control;
3  width: anchor-size(width);
4  height: anchor-size(height);
5
6  &:popover-open {
7    height: 300px;
8    width: 320px;
9
10    @starting-style {
11      width: anchor-size(width);
12      height: anchor-size(height);
13    }
14  }
15}

Anchor the Popover to the button and FLIP it.

anchor-size
125125××