puppeteer/new-docs/puppeteer.protocol.domsnapshot.layouttreenode.md
2020-07-13 14:01:35 +01:00

2.1 KiB

Home > puppeteer > Protocol > DOMSnapshot > LayoutTreeNode

Protocol.DOMSnapshot.LayoutTreeNode interface

Details of an element in the DOM tree with a LayoutObject.

Signature:

export interface LayoutTreeNode 

Properties

Property Type Description
boundingBox DOM.Rect The bounding box in document coordinates. Note that scroll offset of the document is ignored.
domNodeIndex integer The index of the related DOM node in the domNodes array returned by getSnapshot.
inlineTextNodes InlineTextBox[] The post-layout inline text nodes, if any.
isStackingContext boolean Set to true to indicate the element begins a new stacking context.
layoutText string Contents of the LayoutText, if any.
paintOrder integer Global paint order index, which is determined by the stacking order of the nodes. Nodes that are painted together will have the same index. Only provided if includePaintOrder in getSnapshot was true.
styleIndex integer Index into the computedStyles array returned by getSnapshot.