W3C home > Mailing lists > Public > public-media-capture@w3.org > May 2014

Re: [Bug 25766] New: Problem with constraints failure when there is no constraint.

From: Martin Thomson <martin.thomson@gmail.com>
Date: Sun, 18 May 2014 08:23:25 -0700
Message-ID: <CABkgnnUq4Km_nW-BN0yHmQYZ+oboBhXr=kXexJs-fR4ELbH6fg@mail.gmail.com>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
On 18 May 2014 05:59,  <bugzilla@jessica.w3.org> wrote:
> The way require works now means that
>
> var constraints =
>  {
>    require: ["width", "height"],
>    width: {min: 640},
>  };
>
> will always fail because there is no hight attribute. This seems wacky. If
> there is not constraint, it should not fail.

I disagree.  The application asked for something to fail and then set
up an impossible configuration, that's not so bad.
Received on Sunday, 18 May 2014 15:23:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:27 UTC