W3cubDocs

/Web APIs

OverconstrainedError: constraint property

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The constraint read-only property of the OverconstrainedError interface returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied.

Value

A string.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
constraint 63 79 No No 50 11.1 63 63 No 46 11.3 8.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/OverconstrainedError/constraint