I was reading through the CSS Anchored Position spec and I just could not figure out how to make a tooltip that points towards the anchor. To me that was kind of an obvious requirement as this is a really common pattern for tooltips.
This is what I ended up with:
https://codepen.io/NielsLeenheer/pen/jEWyQxa
So this is either very clever, or I am overlooking something very obvious. Which is it? Is there an easier way to do this?
(Oh... and it crashes Safari... so... yeah)