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: James Ross <w3c-20040125@james-ross.co.uk>
Date: Tue, 15 Apr 2014 09:41:48 +0100
Message-ID: <DUB113-W62C2138D77FF966B62A814E3500@phx.gbl>
To: "robert@ocallahan.org" <robert@ocallahan.org>, Simon Pieters <simonp@opera.com>, www-style <www-style@w3.org>
CC: Greg Whitworth <gwhit@microsoft.com>
> Date: Tue, 15 Apr 2014 12:31:48 +1200 
> From: robert@ocallahan.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. 


Testing IE11 on Windows 7:


Main page: A for documentElement.scrollLeft and B for window.pageXOffset (window.scrollX is undefined).


overflow:scroll div: A for scrollLeft.


The overflow:scroll iframe test doesn't work because data: isn't supported in that context in IE.


-- 
James Ross (james@james-ross.co.uk) 		 	   		  
Received on Tuesday, 15 April 2014 08:42:18 UTC

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