WebHitTestResult.contextIsSelection

bool contextIsSelection()

Check whether there is a selected element at the hit test position.

Checks whether [webkit.types.HitTestResultContext.Selection] flag is present in the context flags.

Returns

true if the hit test covers a selected element or false otherwise.