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

Re: [CSSOMViews] viewport scroll state and the scroll* properties

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 13 Aug 2010 00:33:39 +0200
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: www-style <www-style@w3.org>
Message-ID: <op.vhcjmdyd64w2qv@anne-van-kesterens-macbook-pro.local>
On Thu, 29 Oct 2009 04:31:12 +0100, Robert O'Callahan  
<robert@ocallahan.org> wrote:
> See http://dev.w3.org/csswg/cssom-view/
> Currently it does not define any special handling for the root element  
> and HTML <body> element. However, all browsers implement some special  
> handling for these elements, to give access to the viewport scrollbar  
> state.
> [...]
> I suggest that the IE8/Firefox behaviour be written into the spec. I  
> think that scrollTop on the root element should work even for non <html>  
> roots and non-HTML documents, although we don't currently implement this.

Fixed. (Also took in account the comments from February this year on this  
same thread.)

> I'm not sure what to do about scrollWidth and scrollHeight; looking at  
> the code they will behave similarly to scrollTop in Firefox ---  
> returning values from the viewport, instead of the element --- but I  
> haven't tested them.

Also fixed, based my testing on Firefox.

Specification can be found at:


Because of these changes the specification has now diverged from one of  
its original goals to get rid of quirks mode specifics for the legacy  
features defined in the specification. It now explicitly references the  
quirks mode concept for Document defined in HTML5 to define various  
aspects. I removed that goal.

Anne van Kesteren
Received on Thursday, 12 August 2010 22:34:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:49 UTC