Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Protocol.DOMSnapshot.InlineTextBox
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.js";
const { InlineTextBox } = Protocol.DOMSnapshot;

Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.

Properties

boundingBox: DOM.Rect

The bounding box in document coordinates. Note that scroll offset of the document is ignored.

startCharacterIndex: integer

The starting index in characters, for this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.

numCharacters: integer

The number of characters in this post layout textbox substring. Characters that would be represented as a surrogate pair in UTF-16 have length 2.