Ojan Vafai | 18 Aug 2012 07:57

Re: [cssom-view] value of scrollLeft in RTL situations is completely busted across browsers

On Fri, Aug 17, 2012 at 8:24 PM, Glenn Adams <glenn <at> skynav.com> wrote:


On Sat, Aug 18, 2012 at 9:41 AM, Ojan Vafai <ojan <at> chromium.org> wrote:
How about scrollStart to be consistent with marginStart, et. al. from CSS? Then it can also do the right thing in vertical writing-mode (e.g. set the scrollTop). Obviously, we'd want to add scrollBefore as well to be the logical equivalent to scrollTop.

'before' (referring to logically prior in the block progression dimension) generally refers to right, not top for vertical modes that are top to bottom, right to left

What I meant was that scrollBefore is the logical equivalent to the physical scrollTop (i.e. in the default writing-mode/direction, scrollLeft == scrollStart and scrollTop == scrollBefore).

Gmane