W3C home > Mailing lists > Public > www-style@w3.org > August 2012

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 9 Aug 2012 09:24:35 +1200
Message-ID: <CAOp6jLbvEZFLQTABWa=+djnJP9-gta5xWnhPHjAQBZzLC+JHcg@mail.gmail.com>
To: Matitiahu Allouche <matitiahu.allouche@gmail.com>
Cc: "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>, ML publc-i18n-bidi <public-i18n-bidi@w3.org>, www-style <www-style@w3.org>
On Thu, Aug 9, 2012 at 4:16 AM, Matitiahu Allouche <
matitiahu.allouche@gmail.com> wrote:

> My view is that working in RTL should be symmetrical to working in LTR.
> Thus, scrollLeft=0 should correspond to the logical starting point of the
> page both for LTR and for RTL. For LTR, that will  be on the left side and
> for RTL that will be on the right side.
> Increasing positive values of scrollLeft will reflect going forward in the
> page direction, to the right for LTR and to the left for RTL.
>
> The name "scrollLeft" is not suggestive of such a behavior. Maybe it
> should be changed to "scrollHorizontal" or something else which does not
> reflect a LTR bias.
>

We have to have a property called "scrollLeft", for Web compatibility
reasons.

We do have the option of introducing a new scrollHorizontal property that
works differently from scrollLeft.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Wednesday, 8 August 2012 21:25:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT