Skip to content

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

@nicolo-ribaudo

Description

@nicolo-ribaudo

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:

Screen.Recording.2024-10-28.at.17.58.47.mov

Right now I'm positioning these popups using JavaScript. However, it would be great to be able to give those highlights a name through anchor-name: --error-1, anchor-name: --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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions