Skip to content

Commit

Permalink
FF131Relnote: Document.caretPositionFromPoint() updated for shadow DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Sep 17, 2024
1 parent 737d38e commit 336c8c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions files/en-us/mozilla/firefox/releases/131/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This article provides information about the changes in Firefox 131 that affect d
- The {{domxref('PointerEvent.altitudeAngle','altitudeAngle')}} and {{domxref('PointerEvent.azimuthAngle','azimuthAngle')}} properties of the {{domxref('PointerEvent')}} interface are supported, providing the angle between the pointer/stylus and the screen (X-Y plane), and the rotation of the stylus over the screen relative to its x-axis, respectively. ([Firefox bug 1656377](https://bugzil.la/1656377)).
- [Text fragments](/en-US/docs/Web/URI/Fragment/Text_fragments) are now supported, allowing users to link to and highlight specific portions of text in a web page. This feature uses a particular syntax in the [URL fragment](/en-US/docs/Web/URI/Fragment) that identifies the target based on patterns in the rendered text.
Website developers can also use the existence of the {{domxref("Document.fragmentDirective")}} property (an instance of the {{domxref("FragmentDirective")}} interface) to feature check for text fragment support, and the {{CSSxRef("::target-text")}} pseudo element to select and style text that has been selected using a text fragment link. ([Firefox bug 1914877](https://bugzil.la/1914877))
- The {{domxref('Document/caretPositionFromPoint','caretPositionFromPoint()')}} method of the {{domxref("Document")}} interface has been updated so that it can return the text node and offset for a caret position within a shadow DOM, provided the shadow root has been supplied to the method. ([Firefox bug 1914596](https://bugzil.la/1914596)).

#### DOM

Expand Down

0 comments on commit 336c8c5

Please sign in to comment.