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: Shane Stephens <shans@google.com>
Date: Thu, 9 Aug 2012 15:33:14 +1000
Message-ID: <CAGTfzwSWMJqdyowB2v2AKgJuTAEh7CxCKx+0+MA5Jv388rfN2w@mail.gmail.com>
To: Glenn Adams <glenn@skynav.com>
Cc: robert@ocallahan.org, www-style@gtalbot.org, www-style <www-style@w3.org>, ML publc-i18n-bidi <public-i18n-bidi@w3.org>
>
>
>> Based on this data, I propose we adopt the Gecko/Opera behavior for both
>> viewport and non-viewport scrolling. (I assume everyone agrees that Webkit
>> treating them differently is a bug.)
>>
>> If we need a property that always starts at 0 and progresses left in RTL
>> situations, I suggest creating a new "scrollHorizontal" property for that.
>
>
> I agree. scrollLeft should express legacy behavior (to the extent we can
> agree on a norm), and a new method can be defined to effectively abstract
> writing mode;
>
>
I'm quite happy with this approach too.

Would we then agree with Rob's original suggestion ("I think most Web
content I've seen that uses scrollLeft assumes its minimum value is zero
and it increases from left to right" - the key here is that the minimum
maps to the left hand edge) as a specification for scrollLeft? Or
alternatively explicitly denote that scrollLeft is legacy and undefined for
RTL content?

Cheers,
    -Shane


> Glenn
> --
> "What can be asserted without proof can be dismissed without proof." -
> Christopher Hitchens
>
>
>>
>> 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 Thursday, 9 August 2012 05:33:42 GMT

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