chromium/third_party/blink/renderer/core/css/cssom/caret_position.idl

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://www.w3.org/TR/cssom-view/#caretposition
[
    RuntimeEnabled=CaretPositionFromPoint,
    Exposed=Window
] interface CaretPosition {
    readonly attribute Node offsetNode;
    readonly attribute unsigned long offset;
    [NewObject] DOMRect? getClientRect();
};