Re: Bug 23935 - Proposal: New syntax for constraints

On 12/14/13 12:21 PM, Jan-Ivar Bruaroey wrote:
> The order is preferred order as you expressed it.

That said, you can probably change the order without consequence in this 
case since sets are likely one aspect or the other, not both.

I.e. this is the same (also assuming we'll reasonably 
approximate-compare aspects, which I suggest we mention in the spec btw):

[
  {aspect:1.33, width: 1200, height: 900 },
  {aspect:1.33, width: { min: 800, max: 1600 }, height: { min: 600, max: 
1200 } },
  {aspect:1.77, width: 1600, height: 900 },
  {aspect:1.77, width: { min: 1280, max: 1920 }, height: { min: 720, 
max: 1080 } }
]

Is that more to your liking?

.: Jan-Ivar :.

Received on Saturday, 14 December 2013 19:29:42 UTC