On Wed, May 28, 2014 at 6:14 AM, <kgilb...@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. Rob -- Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt wyeonut thoo mken.o w _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform