Re: [Bug 26526] Fix aspect ratio constraint

On 8/6/14 9:09 PM, bugzilla@jessica.w3.org wrote:
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=26526
>
> Silvia Pfeiffer <silviapfeiffer1@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |silviapfeiffer1@gmail.com
>
> --- Comment #1 from Silvia Pfeiffer <silviapfeiffer1@gmail.com> ---
> We handle width and height separately, why not { aspect: {x : 16, y : 9} }.
> Doesn't seem that complicated.

But unnecessary. Width and height are separate constraints, not a 
multi-property constraint. I.e. not { video: { exact: size: { w: 640, h: 
480 } } };

I think there's a better case size to be our first multi-property 
constraint than aspect, as the former is a two-dimensional space and the 
latter just a ratio.

AspectRatio, frameRate and volume all use double, and we need to compare 
them. There may be future double constraints as well, so I think an 
epsilon value is smart.

.: Jan-Ivar :.

Received on Thursday, 7 August 2014 02:30:12 UTC