getAnchorElement
suspend fun getAnchorElement(args: DOM.GetAnchorElementParameter, mode: CommandMode = CommandMode.DEFAULT): DOM.GetAnchorElementReturn
Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.
suspend fun getAnchorElement(nodeId: Int, anchorSpecifier: String? = null): DOM.GetAnchorElementReturn
Returns the target anchor element of the given anchor query according to https://www.w3.org/TR/css-anchor-position-1/#target.
Parameters
nodeId
Id of the positioned element from which to find the anchor.
anchorSpecifier
An optional anchor specifier, as defined in https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier. If not provided, it will return the implicit anchor element for the given positioned element.