20 Jun 2012 01:33
Re: [CSSOM-view] Support centering an element when scrolling into view.
Thaddee Tyl <thaddee.tyl <at> gmail.com>
2012-06-19 23:33:50 GMT
2012-06-19 23:33:50 GMT
On Tue, Jun 19, 2012 at 3:24 PM, Thaddee Tyl <thaddee.tyl <at> 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; };
RSS Feed