Web/API/DoubleRange

From Get docs


The DoubleRange dictionary is used to define a range of permitted double-precision floating-point values for a property, with either or both a maximum and minimum value specified. The ConstrainDouble dictionary is based on this, augmenting it to support exact and ideal values as well.

Properties

max
A floating-point value specifying the largest permissible value of the property it describes.
min
A floating-point value specifying the smallest permissible value of the property it describes.

The specified min and/or and max values are required. If no match can be found that is within the given range, an error will occur.

Specifications

Specification Status Comment
Media Capture and StreamsThe definition of 'DoubleRange' in that specification. Candidate Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
DoubleRange Chrome

Full support Yes

Edge

Full support ≤79

Firefox

Full support 50

IE

No support No

Opera

No support No

Safari

?

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 50

Opera Android

No support No

Safari iOS

?

Samsung Internet Android

Full support Yes

Legend

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


See also