W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [CSSOM-view] Support centering an element when scrolling into view.

From: Thaddee Tyl <thaddee.tyl@gmail.com>
Date: Tue, 19 Jun 2012 16:33:50 -0700
Message-ID: <CAE3TfZP06SEzfhrq3RwmLLJjXv-39s087UxYRbQyEDYhYghqFw@mail.gmail.com>
To: www-style@w3.org
On Tue, Jun 19, 2012 at 3:24 PM, Thaddee Tyl <thaddee.tyl@gmail.com> wrote:
> I have written a more formal description of the behavior of my
> proposal at <https://www.w3.org/Bugs/Public/show_bug.cgi?id=17152#c2>,
> which I hope addresses most issues. I have tried as much as I could to
> rely on terms already defined by the current draft.

>From feedback I have received on Twitter, some people would rather
rename "evenIfViewed" (from the proposal) to "evenIfAlreadyInView".

Also, some people are interested in being able to add an offset, which
would require this:

    partial interface Element {
      void scrollIntoView(ScrollPosition options);
    };

    dictionary ScrollPosition {
      float top = 0.5;
      float left = 0.0;
      boolean notIfViewed = true;
      long offsetX = 0;
      long offsetY = 0;
    };
Received on Tuesday, 19 June 2012 23:34:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT