W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > July to September 2012

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

From: Gérard Talbot <www-style@gtalbot.org>
Date: Wed, 8 Aug 2012 23:23:52 -0400
Message-ID: <fb209e850023de1f93c587cd960507c8.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: "Sylvain Galineau" <sylvaing@microsoft.com>, "www-style" <www-style@w3.org>, "Shane Stephens" <shans@google.com>, "ML publc-i18n-bidi" <public-i18n-bidi@w3.org>
Le Mer 8 août 2012 22:27, Robert O'Callahan a écrit :

> If we do make scrollLeft and pageXOffset different for RTL, we'll need to
> decide which one scrollX maps to.

Some browsers maps all 3 to the same value.

Firefox 14.0.1, Opera 12.01 and Konqueror 4.9.0 map window.pageXOffset to
document.documentElement.scrollLeft and to window.scrollX .


> I suppose making it equal scrollLeft is
> most logical. We'll also have to define scrollTo() for RTL; making it
> follow scrollLeft/scrollTop is what IE does, which seems reasonable.

For your information, Chrome 21.0.1180.75 maps window.pageXOffset to
document.body.scrollLeft (and not to document.documentElement.scrollLeft)
which seems to me to be an error.

Demo (old but still ok for the purpose of discussion):

CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Thursday, 9 August 2012 03:25:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:24:40 UTC