W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: [CSSOM View] Extensions to Element.scrollLeft and Element.scrollTop are not valid WebIDL

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 30 Jul 2014 14:30:00 +1000
Message-ID: <53D874C8.5070307@mcc.id.au>
To: Kip Gilbert <kgilbert@mozilla.com>, www-style@w3c.org
On 23/07/14 10:39, Kip Gilbert wrote:
> I would like to suggest that the scrollTop and scrollLeft attributes
> remain as double data type only, and that a separate method be added
> to the Element interface for scrolling with ScrollOptions:
>    void scrollTo(double x, double y, optional ScrollOptions options);
> Calling this method would be equivalent to setting both the scrollTop
> and scrollLeft attributes while simultanously specifying the
> ScrollOptions.

I think that's a much clearer API.  I don't think assigning an object 
with the scroll options but getting back out a double if you read it 
later is the kind of API we see elsewhere in the platform, or want to 
Received on Wednesday, 30 July 2014 04:30:05 UTC

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