We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

SVGGeometryElement.isPointInFill()

The SVGGeometryElement.isPointInFill() method determines whether a given point is within the fill shape of an element. Normal hit testing rules apply; the value of the pointer-events property on the element determines whether a point is considered to be within the fill. The point argument is interpreted as a point in the local coordiante system of the element.

Syntax

boolean someElement.isPointInFill(DOMPoint point);

Parameters

point
A DOMPoint interpreted as a point in the local coordiante system of the element.

Return value

A boolean indicating whether the given point is within the fill or not.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGGeometryElement.isPointInFill()' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? No ? Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? No Yes ? ?

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, Sebastianz
Last updated by: fscholz,