Nos bénévoles n'ont pas encore traduit cet article en Français. Inscrivez-vous et aidez-nous à réaliser cette tâche !
Vous pouvez également lire cet article en English (US).

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 Streams
The definition of 'DoubleRange' in that specification.
Candidate Recommendation Initial definition

Browser compatibility

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

See also

Étiquettes et contributeurs liés au document

Contributeurs à cette page : fscholz, Sheppy
Dernière mise à jour par : fscholz,