This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface [[ If the element is the root element and the element's document's browsing context is a top-level browsing context, return the viewport width excluding the size of a rendered scroll bar (if any). ]] This needs to check for quirks mode instead of top-level browsing context. In quirks mode, <body> maps to viewport Otherwise, root maps to viewport http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2442 vs http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2443 ack: On Mon, 05 Aug 2013 23:32:40 +0200, Pavel Curtis <pavel@keltis.us> wrote: > Hi, Simon. > > I noticed that, in May of this year, you added language to the CSSOM > editor's draft that changed the specified behavior for 'clientWidth' > and 'clientHeight' on root elements of documents inside IFRAMEs. With > the new language, these properties only return the viewport dimensions > for root elements of documents in *top-level* browsing contexts. > > Do you remember why you made this change? As far as I can tell, > testing on IE 10, Chrome 28, Firefox 22, and Opera 12, none of the > major browsers appear to implement this new behavior: they all return > the viewport size regardless of whether the document is in a top-level > or nested browsing context. I was unable to find any discussion of > this issue in the www-style archives, either. > > Thanks for any light you can shed on this question! > > Pavel
https://dvcs.w3.org/hg/csswg/rev/8688f55b42f4