Skip to content

Commit 5b1fe25

Browse files
authored
Add option param to caretPositionFromPoint() feature (#2909)
This is a new addition. Pin the feature to just the entry point. This changes the Firefox version to 20 instead of 23, and getClientRect() is the bit that previously pushed it to 23. This seems OK as it's in the distant past and doesn't change the Baseline dates.
1 parent 12e7bf1 commit 5b1fe25

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: document.caretPositionFromPoint()
22
description: The `document.caretPositionFromPoint()` method finds an insertion point, represented by a DOM node and an offset within that node, for given coordinates in the viewport.
33
spec: https://drafts.csswg.org/cssom-view-1/#dom-document-caretpositionfrompoint
4+
status:
5+
compute_from: api.Document.caretPositionFromPoint
46
compat_features:
57
- api.CaretPosition
68
- api.CaretPosition.getClientRect
79
- api.CaretPosition.offset
810
- api.CaretPosition.offsetNode
911
- api.Document.caretPositionFromPoint
12+
- api.Document.caretPositionFromPoint.options_parameter

features/document-caretpositionfrompoint.yml.dist

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ status:
77
chrome: "128"
88
chrome_android: "128"
99
edge: "128"
10-
firefox: "23"
11-
firefox_android: "23"
10+
firefox: "20"
11+
firefox_android: "20"
1212
compat_features:
1313
# baseline: low
1414
# baseline_low_date: 2025-03-31
@@ -36,6 +36,7 @@ compat_features:
3636
# safari_ios: "18.4"
3737
- api.CaretPosition.getClientRect
3838

39+
# ⬇️ Same status as overall feature ⬇️
3940
# baseline: false
4041
# support:
4142
# chrome: "128"
@@ -44,3 +45,10 @@ compat_features:
4445
# firefox: "20"
4546
# firefox_android: "20"
4647
- api.Document.caretPositionFromPoint
48+
49+
# baseline: false
50+
# support:
51+
# chrome: "128"
52+
# chrome_android: "128"
53+
# edge: "128"
54+
- api.Document.caretPositionFromPoint.options_parameter

0 commit comments

Comments
 (0)