- From: Justin Fagnani via GitHub <noreply@w3.org>
- Date: Fri, 12 Sep 2025 00:09:27 +0000
- To: public-css-archive@w3.org
A use case I have for something here is a "callout" box that has an arrow that points to the anchor. Like so: <img width="439" height="459" alt="Image" src="https://github.com/user-attachments/assets/43c44897-516f-4027-bfe1-f6e9fa4d1547" /> I'd like the arrow placement to be automatic, but I've only been able to do that if the arrow element is positioned directly itself, in addition to the callout's box, which means that currently the anchor has to be inside the shadow root along with the callout box and arrow. Putting the anchor and positioned element in the shadow root means that the component user now no longer has full control over the anchor positioning with CSS. I have to invent a positioning API for them. What I want to be able to do is get the host's anchor that was set with `position-anchor`, then use that in `anchor()` functions to place the arrow element. -- GitHub Notification of comment by justinfagnani Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9408#issuecomment-3283033509 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 12 September 2025 00:09:28 UTC