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

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 UTC