[csswg-drafts] [css-highlight-api][css-anchor-position] Allow `position-anchor` on `::highlight(...)` (#11100)

nicolo-ribaudo has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-highlight-api][css-anchor-position] Allow `position-anchor` on `::highlight(...)`  ==
I am writing a little editor using `::highlight()` to mark some errors in the text, and when hovering over the errors it shows a popup with more details:

https://github.com/user-attachments/assets/31332607-ddb2-4e1a-9890-290c04892bea

Right now I'm positioning these popups using JavaScript. However, it would be great to be able to give those highlights a name through `position-anchor: --error-1`, `position-anchor: --error-2`, ... and then set `anchor-name` on the popup to automatically show it in the right place.

Another use case for this would be to show a popup with spelling suggestions.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11100 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 28 October 2024 17:02:13 UTC