W3C home > Mailing lists > Public > www-style@w3.org > April 2014

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 15 Apr 2014 12:31:48 +1200
Message-ID: <CAOp6jLa_=jcSR+eaNbqvOLTrR-yZ3F+1h4kLeWtGt3TgycyC5Q@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: Greg Whitworth <gwhit@microsoft.com>, www-style <www-style@w3.org>
BTW let me summarize the current state of the situation as I understand it:

Behavior A: For RTL, attribute value 0 means scrolled all the way to the
right, and attribute value increases as you scroll left.
Behavior B: For RTL, attribute value 0 means scrolled all the way to the
right, and attribute value increases as you scroll right.
Behavior C: For RTL, attribute value 0 means scrolled all the way to the
left, and attribute value increases as you scroll right.

FF: B for window.scrollX, B for non-body non-root scrollLeft
Chrome: B for window.scrollX, C for non-body non-root scrollLeft
IE: A for window.scrollX, A for non-body non-root scrollLeft (can someone
check with http://people.mozilla.org/~roc/test_rtl_scrollLeft.html? I don't
have IE here)
Spec: B for window.scrollX, C for non-body non-root scrollLeft (but Simon
wants window.scrollX to be C)

One other thing: currently pageXOffset is implemented by all browsers and
the spec to have behavior B. If the spec changes the definition of
window.scrollX, the definition of pageXOffset needs to be changed to not
refer to scrollX.

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
Received on Tuesday, 15 April 2014 00:32:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC