Skip to content

Commit 5cd5db1

Browse files
committed
FF150Relnote HighlightRegistry: highlightsFromPoint()
1 parent 4179ddf commit 5cd5db1

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

  • files/en-us
    • mozilla/firefox/releases/150
    • web/api/highlightregistry/highlightsfrompoint

files/en-us/mozilla/firefox/releases/150/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ No notable changes.
5252
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.
5353
([Firefox bug 1914596](https://bugzil.la/1914596)).
5454

55+
- 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.
56+
This includes highlights that are inside shadow roots, provided the associated {{domxref("ShadowRoot")}} instance was passed to the method.
57+
([Firefox bug 1917991](https://bugzil.la/1917991)).
58+
59+
highlightsFromPoint() allows web pages to interact with CSS Highlights by returning all Highlights at a given point.
60+
5561
- The {{domxref("CSSFontFaceDescriptors")}} interface is now supported, and an instance of this type is returned by the {{domxref("CSSFontFaceRule.style")}} property. ([Firefox bug 2019904](https://bugzil.la/2019904)).
5662

5763
- The non-standard {{domxref("Document/caretRangeFromPoint","caretRangeFromPoint()")}} method of the {{domxref("Document")}} interface is now supported. ([Firefox bug 1550635](https://bugzil.la/1550635)).

files/en-us/web/api/highlightregistry/highlightsfrompoint/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ highlightsFromPoint(x, y, options)
3030

3131
### Return value
3232

33-
An array of `HighlightHitResult` objects representing the custom highlights applied at the point in the viewport specified by the `x` and `y` parameters.
33+
An array of objects representing the custom highlights applied at the point in the viewport specified by the `x` and `y` parameters.
3434

35-
Each `HighlightHitResult` object contains the following properties:
35+
Each object contains the following properties:
3636

3737
- `highlight`
3838
- : A {{domxref("Highlight")}} object representing the applied custom highlight.

0 commit comments

Comments
 (0)