Re: [csswg-drafts] [css-highlight-api] Feedback: the global string-keyed registry makes usage very hard (#11095)

I agree that this is a significant ergonomic problem with the highlight registry. Of the suggestions (thanks for the proposals!) the first seems best in the sense that it is clearly possible to implement efficiently.

The other proposals all have significant downside. Some still require the app to manage the ranges associated with a highlight, in which case the first proposal addresses the issue. Others complicate the design of the Highlight or HighlightRegistry object but still leave the app having to control the logic mapping highlight names to ranges.

-- 
GitHub Notification of comment by schenney-chromium
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11095#issuecomment-2447425260 using your GitHub account


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

Received on Wednesday, 30 October 2024 14:56:28 UTC