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.


boolean someElement.isPointInFill(DOMPointInit point);


A DOMPointInit 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.


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

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
isPointInFillChrome Full support YesEdge ? Firefox No support NoIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android No support NoOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android ?


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Contributors to this page: Longsonr, mdnwebdocs-bot, fscholz, jpmedley, Sebastianz
Last updated by: Longsonr,