Skip to content

FF150 Relnote HighlightRegistry: highlightsFromPoint()#44294

Open
hamishwillee wants to merge 2 commits into
mdn:mainfrom
hamishwillee:ff150_relnote_highlightsfrompoint
Open

FF150 Relnote HighlightRegistry: highlightsFromPoint()#44294
hamishwillee wants to merge 2 commits into
mdn:mainfrom
hamishwillee:ff150_relnote_highlightsfrompoint

Conversation

@hamishwillee
Copy link
Copy Markdown
Collaborator

FF150 added support for HighlightRegistry.highlightsFromPoint() in https://bugzilla.mozilla.org/show_bug.cgi?id=1917991

This adds a release note.

Related docs work can be tracked in #43969

@hamishwillee hamishwillee requested review from a team as code owners May 29, 2026 06:12
@hamishwillee hamishwillee requested review from chrisdavidmills and dipikabh and removed request for a team May 29, 2026 06:12
@github-actions github-actions Bot added Content:WebAPI Web API docs Content:Firefox Content in the Mozilla/Firefox subtree labels May 29, 2026

### Return value

An array of `HighlightHitResult` objects representing the custom highlights applied at the point in the viewport specified by the `x` and `y` parameters.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MDN treats dictionaries as unnamed object.

@github-actions github-actions Bot added the size/s [PR only] 6-50 LoC changed label May 29, 2026
Comment thread files/en-us/mozilla/firefox/releases/150/index.md Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 29, 2026

Preview URLs (2 pages)

External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/150
Title: Firefox 150 release notes for developers

(comment last updated: 2026-05-29 06:15:32)

Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hamishwillee, looking good, just one small sugestion.

This allows the method to return the node containing the caret from within a shadow DOM, provided its associated {{domxref("ShadowRoot")}} was passed as an option.
([Firefox bug 1914596](https://bugzil.la/1914596)).

- The {{domxref("HighlightRegistry.highlightsFromPoint()")}} method is now supported, providing an mechanism for web pages to get information about all the [CSS custom highlights](/en-US/docs/Web/API/CSS_Custom_Highlight_API) at a particular point.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- The {{domxref("HighlightRegistry.highlightsFromPoint()")}} method is now supported, providing an mechanism for web pages to get information about all the [CSS custom highlights](/en-US/docs/Web/API/CSS_Custom_Highlight_API) at a particular point.
- The {{domxref("HighlightRegistry.highlightsFromPoint()")}} method is now supported, providing an mechanism for web pages to get information about all the [CSS custom highlights](/en-US/docs/Web/API/CSS_Custom_Highlight_API) applied at a particular point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants