Re: [cssom-view] DOMRect with aliases x, y to left, top?

On Sep 27, 2013, at 12:37 AM, Robert O'Callahan <> wrote:

> On Fri, Sep 27, 2013 at 9:44 AM, Henrik Andersson <> wrote:
> My point is how the width and right properties change when left and x
> are set. X changes right, left changes width.
> One models the moveable rectangle and the other models the stretchy
> rectangle.
> I think making setting of x/y behave differently from top/left is just super confusing. Imagine trying to explain to authors with a straight face why "x" is different from "left". It would be simpler to make them pure aliases and pick a consistent mutation behavior.

The question is the following:

If an author sets 'left', does he expect that 'right' changes, or does he expect that 'width' changes? For 'x' it seems clear, the author wants consistent 'width' so 'right' changes.

IMO, the author would except that for setting 'left', the UA will change 'right', if you explain the difference.

Or you have special behavior dependent of the attribute that is set. So even if 'x' has always the same value as 'left' and 'y' as 'right', setting one of them has different behavior. I think that is reasonable.


> Rob
> -- 
> Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr, 'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp  waanndt  wyeonut  thoo mken.o w  

Received on Friday, 27 September 2013 05:06:39 UTC