getNodesForSubtreeByStyle

Finds nodes with a given computed style in a subtree.


Finds nodes with a given computed style in a subtree.

Parameters

nodeId

Node ID pointing to the root of a subtree.

computedStyles

The style to filter nodes by (includes nodes if any of properties matches).

pierce

Whether or not iframes and shadow roots in the same target should be traversed when returning the results (default is false).