On Tuesday, 27 May 2014 15:12:56 UTC-7, Robert O'Callahan  wrote:
> On Wed, May 28, 2014 at 6:14 AM, <kgil...@mozilla.com> wrote:
> 
> 
> 
> > Is this behavior acceptable or would it be more desirable to always return
> > the actual scroll position in DOM methods?
> 
> All DOM methods that depend on the scroll position (not just
> scrollLeft/scrollTop but getBoundingClientRect etc too) should always use
> the most up-to-date value of the actual scroll position that the main
> thread has. That's how our existing smooth scrolling behaves. I.e., we
> don't lie :-). I'm pretty sure the CSSOM spec requires that for the
> ScrollBehavior "smooth" value, too.

I agree and have added a comment to the bug (Bug 101538 / Comment 17) to 
indicate that the property should not have the "write-only" effects that I 
described earlier.

- Kip
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to