Test Anchor (mit Polyfill von oddbird)

V1
V2
<style>
	[popover] {
		top: anchor(top);
		left: anchor(right);
		margin: 0;
	}

	#d1 {
		position-anchor: auto;
	}

	#b2 {
		anchor-name: --b2
	}

	#d2 {
		position-anchor: --b2;
	}
</style>
	
<div>
	<button popovertarget="d1" popovertargetaction="toggle">V1</button>
	<div id="d1" popover>V1</div>
</div>

<div>
	<button id="b2" popovertarget="d2" popovertargetaction="toggle">V2</button>
	<div id="d2" popover>V2</div>
</div>