W3C home > Mailing lists > Public > www-style@w3.org > September 2013

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

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 26 Sep 2013 22:05:43 -0700
To: "robert@ocallahan.org" <robert@ocallahan.org>
CC: Henrik Andersson <henke@henke37.cjb.net>, www-style list <www-style@w3.org>
Message-ID: <C8CD38EB-8102-47A4-BDDE-F8F064047BB4@adobe.com>

On Sep 27, 2013, at 12:37 AM, Robert O'Callahan <robert@ocallahan.org> wrote:

> On Fri, Sep 27, 2013 at 9:44 AM, Henrik Andersson <henke@henke37.cjb.net> 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.

Greetings,
Dirk

> 
> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC